Skip to content

Commit 3993cec

Browse files
committed
how to update golden files
1 parent 5fc0c10 commit 3993cec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cli/root_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import (
2222
"github.com/coder/coder/testutil"
2323
)
2424

25+
// To update the golden files:
26+
// go test ./cli -run TestCommandHelp -update
2527
var updateGoldenFiles = flag.Bool("update", false, "update .golden files")
2628

2729
//nolint:tparallel,paralleltest // These test sets env vars.

0 commit comments

Comments
 (0)