Add AVA to your project
$ npm init ava [options]
$ npm install create-ava
const createAva = require('create-ava');
(async () => {
await createAva();
})();
Returns a Promise
.
Type: object
Type: string
Default: process.cwd()
Current working directory.
Type: string[]
Default: CLI arguments (process.argv.slice(2)
)
For instance, with the arguments ['--foo', '--bar']
, the following will be put in package.json:
{
"name": "awesome-package",
"scripts": {
"test": "ava --foo --bar"
}
}
Type: boolean
Default: false
Install ava@next
instead of ava
.