feat(cli): add golden tests for errors (#11588) (#12698)

* feat(cli): add golden tests for errors (#11588)

Creates golden files from `coder/cli/errors.go`.
Adds a unit test to test against golden files.
Adds a make file command to regenerate golden files.
Abstracts test against golden files.
This commit is contained in:
elasticspoon
2024-04-01 10:19:26 -04:00
committed by GitHub
parent 75bf41ba02
commit cfb94284e0
12 changed files with 168 additions and 59 deletions

View File

@ -0,0 +1,2 @@
Encountered an error running "coder exp example-error cmd", see "coder exp example-error cmd --help" for more information
error: some error: function decided not to work, and it never will