Skip to content

Commit 01074df

Browse files
committed
fix: update expectedInitHelp when updating snapshots
1 parent 25eb2fc commit 01074df

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

internal/cli/test.go

+7
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,13 @@ func updateSnapshots(cmd *cobra.Command, opts testOptions, re *recipe.Recipe) er
109109
return fmt.Errorf("failed to render templates: %w", err)
110110
}
111111

112+
if test.ExpectedInitHelp != "" {
113+
test.ExpectedInitHelp, err = sauce.RenderInitHelp()
114+
if err != nil {
115+
return fmt.Errorf("failed to render init help: %w", err)
116+
}
117+
}
118+
112119
fileStatuses := make(map[string]recipeutil.FileStatus, len(sauce.Files))
113120

114121
for filename, file := range sauce.Files {

0 commit comments

Comments
 (0)