npm i -D start-ava
import Start from 'start';
import reporter from 'start-pretty-reporter';
import files from 'start-files';
import watch from 'start-watch';
import ava from 'start-ava';
import tapSpec from 'tap-spec';
const start = Start(reporter());
export function test() {
return start(
files('test/**/*.js'),
ava('tap', tapSpec)
)
}
export function tdd() {
return start(
files([ 'lib/**/*.js', 'test/**/*.js' ]),
watch(test)
);
}
This task relies on array of files and provides the same, see documentation for details.
👉 Note that this task will not work with start-istanbul.
ava(avaReporter, tapReporter)
avaReporter
– name of AVA reporter,'verbose'
by defaulttapReporter
– optional tap reporter foravaReporter='tap'