npm test - run our tests using the local .mocharc.json config file. They are run from the default location ( /test ) with the reporter found in src/my-reporter.js . In this example there is 1 failing test included, to demonstrate handling.
| | |||
---|---|---|---|---|
| ||||
npm test
.mocharc.json
/test
src/my-reporter.js