Adapt ava to work with sighjs.
npm install ava sigh-ava --save-dev
var merge, glob, concat, write, env, pipeline;
var ts;
var ava;
module.exports = function(pipelines) {
pipelines["build"] = [
glob({basePath: "src"}, "**/*.ts"),
ts(),
write("lib")
];
pipelines["test"] = [
ava({files: "test/*.js", source: "src/**/*.ts"})
];
};
ava(options)
Running sigh with option -w launches ava in watch mode (option watch
).
-
files
Glob patterns for test files.
Type: string
Default:test.js test-*.js
-
source
Type: Array<string>
Pattern to match source files so tests can be re-run (Can be repeated)
See other options at avajs/ava#cli