/ava

:space_invader: AVA task for Start

Primary LanguageJavaScriptMIT LicenseMIT

start-ava

npm linux build windows build coverage deps

AVA task for Start.

Install

npm i -D start-ava

Usage

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.

Arguments

ava(avaReporter, tapReporter)

  • avaReporter – name of AVA reporter, 'verbose' by default
  • tapReporter – optional tap reporter for avaReporter='tap'