-
src
- All of your code will go in here.
-
test
- Existing tests for all algorithms are here.
- run 'npm install' from the root level.
- Write code
- Run Tests
- Run eslint
- Included, do not modify any rules
./node_modules/mocha/bin/\_mocha test/
- Or you can use the command from package.json
npm run test
./node_modules/mocha/bin/\_mocha test/foo-spec
- Every 'it' and 'describe' block can be post-fixed with a .only or a .skip flag.
- If you use a .only flag then only that test or test block will be executed.
- If you use a .skip flag then all tests except for the ones marked as skipped will executed.
it.only("Should only run this stuff", function () {})
it.skip("Should not run this test", function () {})