Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

avajs/create-ava

Repository files navigation

create-ava

Add AVA to your project

CLI

$ npm init ava [options]

API

$ npm install create-ava

Usage

const createAva = require('create-ava');
(async () => {
	await createAva();
})();

createAva(options?)

Returns a Promise.

options

Type: object

cwd

Type: string
Default: process.cwd()

Current working directory.

args

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"
	}
}

next

Type: boolean
Default: false

Install ava@next instead of ava.

About

Add AVA to your project

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 9

AltStyle によって変換されたページ (->オリジナル) /