diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-04-20 23:38:02 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-04-20 23:38:02 +0200 |
| commit | 47b0bfe47e6f13d549897149b0abc4a72ba8ac88 (patch) | |
| tree | cd694411d47898a4eb10b1c0e6787f81fce6f0e6 /README.md | |
| parent | 879fa389c2592760def75177eefbd3193e1845c9 (diff) | |
Add tests to second batch of components
- Error Block
- Forum List
- Language Selector
- Post
- Tag
- Topic Summary
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -14,5 +14,15 @@ root of the project. This project depends on the [forum server][forum-server], so make sure that's running before starting. +## Testing + +You can run tests with `npm test`. The tests use `testing-library` 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 + [node]: https://nodejs.org/en/ [forum-server]: https://gitlab.com/rbdr/forum-server |