npm install --save-dev start-mocha
# or
yarn add --dev start-mocha
import Start from 'start';
import reporter from 'start-pretty-reporter';
import files from 'start-files';
import watch from 'start-watch';
import mocha from 'start-mocha';
const start = Start(reporter());
export const test = () => start(
files('test/**/*.js'),
mocha()
);
export const tdd = () => start(
files([ 'lib/**/*.js', 'test/**/*.js' ]),
watch(test)
);
This task relies on array of files, see documentation for details.
mocha(options)
options
– Mocha options