Update a Snapshot
Context
We make frequent use of jest snapshots in our testing. These snapshots will fail the test if the output of a command changes. Use the following command to update snapshots
Example
cd $WS_ROOT
# update all snapshots
yarn test:cli:update-snapshots
# update a single snapshot
yarn test:cli:update-snapshots -- {path-to-test}
Backlinks