Defines how to set up an environment to test the project.
The directories structure within the tests folder reflects what is inside the src folder:
src
\---->[folder-name]
\-------->[file-name].js
test
\---->src/
\-------->[folder-name]
\------------>[file-name].test.js
The environment requires npm, install it from here if needed (Guide for Installing Node).
To install all modules you just need to follow these steps:
- Go to
test - Run
npm install
For example:
$ cd test
$ npm installFollow these steps to run the tests suite:
- Go to
test - Run
karma start [config-file]
For example:
$ cd test
$ ./node_modules/karma/bin/karma start karma.config.js