-
To install packages, run:
yarn install
-
Then run:
yarn start
This will start NextJS locally and spin up a local web server you can connect to.
-
Open your browser at localhost:3000
- NextJS
NextJS is used as a build engine - not a runtime. In production, this website is deployed as a static site, so should avoid using NextJS's API feature, as it will not work in production.
To run the unit tests, run:
yarn test
You can also run them in watch mode with:
yarn test --watch
- @testing-library/react
- @testing-library/react-hooks
You should avoid writing tests for all hooks, particularly if you can test the hook by just testing the component that's using it.
- jest
- ts-jest