Skip to content

Latest commit

 

History

History
72 lines (55 loc) · 839 Bytes

ava.md

File metadata and controls

72 lines (55 loc) · 839 Bytes

Enforces the use of AVA

Detects if AVA is being used and is being used correctly.

Fail

{
  "name": "foo",
  "devDependencies": {
    "ava": "*"
  }
}

AVA is not being used in the test script.

{
  "name": "foo",
  "scripts": {
    "test": "ava --serial"
  },
  "devDependencies": {
    "AVA": "*"
  }
}

Specify AVA configuration via a config object instead of passing it through via the CLI.

Pass

{
  "name": "foo",
  "scripts": {
    "test": "ava"
  },
  "devDependencies": {
    "ava": "*"
  }
}
{
  "name": "foo",
  "scripts": {
    "test": "ava"
  },
  "devDependencies": {
    "ava": "*"
  },
  "ava": {
    "serial": true
  }
}

Options

You can set the required version of AVA.

"ava": ["error", "0.15.2"]