Skip to content

Commit

Permalink
Note about test-update
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfurey authored May 5, 2023
1 parent 9a5b203 commit 1ed2022
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ Here are some recommendations for using the Guardian CDK library:

### Snapshot testing
[Snapshot testing with Jest](https://jestjs.io/docs/snapshot-testing) makes it easy to review any stack changes when
developing locally and in PRs. This enables us to catch things early, creating a shorter feedback loop. See the
developing locally and in PRs. This enables us to catch things early, creating a shorter feedback loop.
`npm run test-update` will update the snapshots. See the
[AWS docs](https://docs.aws.amazon.com/cdk/v2/guide/testing.html#testing_snapshot) on snapshot testing.

#### Mocking `gu:cdk:version`
Expand Down

0 comments on commit 1ed2022

Please sign in to comment.