Skip to content
This repository has been archived by the owner on Aug 19, 2019. It is now read-only.

start-runner/ava

Repository files navigation

start-ava

npm linux build windows build coverage deps

AVA task for Start.

Install

npm install --save-dev start-ava
# or
yarn add --dev 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 const test = () => start(
  files('test/**/*.js'),
  ava('tap', tapSpec)
);

export const tdd = () => 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 together with start-istanbul.

Arguments

ava(avaReporter, tapReporter)

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