X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/47b0bfe47e6f13d549897149b0abc4a72ba8ac88..d0ef4b5a008b614a171f7000ae937f9f608727f4:/README.md diff --git a/README.md b/README.md index e78b591..3e0f099 100644 --- a/README.md +++ b/README.md @@ -16,13 +16,15 @@ that's running before starting. ## Testing -You can run tests with `npm test`. The tests use `testing-library` and -`jest`. +You can run tests with `npm test`. The tests use `testing-library`, `pact`, +and `jest`. Here's some short guidelines: - - Every component that receives props or changes state should be tested. - - Test expected outcomes, not implementation details. - - Avoid mocking unless it's an external call + +- Every component that receives props or changes state should be tested. +- Test expected outcomes, not implementation details. +- Avoid mocking unless it's an external call +- Stores that interact with the API should be tested using pact [node]: https://nodejs.org/en/ [forum-server]: https://gitlab.com/rbdr/forum-server