Skip to content

Commit

Permalink
feat: add update snapshot command to cli
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Feb 15, 2022
1 parent 1385125 commit 7f2568f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/util/getParsedCliOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ export const getParsedCliOptions = () => {
)
.option('--no-cache', 'Disable the cache')
.option('--clearCache', 'Deletes the Jest cache directory and then exits without running tests')
.option('--verbose', 'Display individual test results with the test suite hierarchy');
.option('--verbose', 'Display individual test results with the test suite hierarchy')
.option(
'-u, --updateSnapshot',
'Use this flag to re-record every snapshot that fails during this test run'
);

program.exitOverride();

Expand Down

0 comments on commit 7f2568f

Please sign in to comment.