]> git.r.bdr.sh - rbdr/forum/blame - doc/README.md
Update apollo
[rbdr/forum] / doc / README.md
CommitLineData
e8fcef96
RBR
1forum / [Exports](modules.md)
2
3# Forum
4
5A forum for the year 3000.
6
7## What you will need to get started
8
9This project uses [node][node] for most of its development processes.
10Once you have node installed according to the instructions there, run
11`npm install` from the root of the project.
12
13For local development serve the page by running `npm run dev` from the
14root of the project.
15
16This project depends on the [forum server][forum-server], so make sure
17that's running before starting.
18
19## Testing
20
21You can run tests with `npm test`. The tests use `testing-library`, `pact`,
22and `jest`.
23
24Here's some short guidelines:
25
26- Every component that receives props or changes state should be tested.
27- Test expected outcomes, not implementation details.
28- Avoid mocking unless it's an external call
29- Stores that interact with the API should be tested using pact
30
31[node]: https://nodejs.org/en/
32[forum-server]: https://gitlab.com/rbdr/forum-server