Skip to content

Commit

Permalink
add coverage docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jameskmonger committed Jul 10, 2022
1 parent 1c5a35d commit daa4d5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ Unit tests can be written using Jest. To execute the test suite, run `npm test`
- Tests should use the `when / then` pattern made up of composable `describe` statements
- Make use of `beforeEach` to set up state before each test

After running the tests, you can find code coverage in the `./coverage/` folder.

### When / Then testing pattern

Tests should be broken down into a series of `describe` statements, which set up their own internal state when possible.
Expand Down

0 comments on commit daa4d5f

Please sign in to comment.