aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index ac80064..e78b591 100644
--- a/README.md
+++ b/README.md
@@ -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