From daa4d5f2b931a7093282ca5d3b1ff73c14cb5e87 Mon Sep 17 00:00:00 2001 From: James Monger Date: Sun, 10 Jul 2022 09:58:23 +0100 Subject: [PATCH] add coverage docs --- CONTRIBUTING.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e8d02bfea..2f5cae3e9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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.