To avoid running the entire test suite (when writing the tests), you can choose to only run specific tests based on a matching regular expresssion eg:
given snippet of packages file:
"scripts":{
...,
"test": "PORT=9998 NODE_ENV=test mocha -R spec -b --recursive"
}
then
npm test -- --grep ManageSessions
will run any of the tests with a describe title matching *ManageSessions*
No comments:
Post a Comment