Skip to content

Commit

Permalink
fix: update expectedInitHelp when updating snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
majori committed Jul 18, 2024
1 parent 25eb2fc commit 01074df
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/cli/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ func updateSnapshots(cmd *cobra.Command, opts testOptions, re *recipe.Recipe) er
return fmt.Errorf("failed to render templates: %w", err)
}

if test.ExpectedInitHelp != "" {
test.ExpectedInitHelp, err = sauce.RenderInitHelp()
if err != nil {
return fmt.Errorf("failed to render init help: %w", err)
}
}

fileStatuses := make(map[string]recipeutil.FileStatus, len(sauce.Files))

for filename, file := range sauce.Files {
Expand Down

0 comments on commit 01074df

Please sign in to comment.