Testing
Running tests
To run unit tests:
- from terminal: run
npm run-script test
- from VS Code: menu
Terminal
>Run Task...
> [npm: test] - if you have installed the NPM Support for VS Code
plugin: press
Ctrl-R, T
.
Writing tests
For unit tests, we use following tools:
- Karma as a test runner
- Jasmine as a testing framework
- fetch-mock to mock the
fetch
API