Simplify AVA use

This commit is contained in:
Jeroen Engels 2016-03-27 16:58:45 +02:00
parent 42cc61db1c
commit a29c622bc2

View file

@ -8,8 +8,8 @@
"scripts": { "scripts": {
"lint": "eslint cli.js \"lib/**/*.js\" && xo", "lint": "eslint cli.js \"lib/**/*.js\" && xo",
"test": "npm run lint && npm run test-unit", "test": "npm run lint && npm run test-unit",
"test-unit": "ava \"lib/**/*.test.js\"", "test-unit": "ava",
"test-unit:w": "npm run test-unit -- --watch" "test-unit:w": "ava --watch"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -38,6 +38,9 @@
"eslint-plugin-ava": "^1.2.1", "eslint-plugin-ava": "^1.2.1",
"xo": "^0.13.0" "xo": "^0.13.0"
}, },
"ava": {
"files": ["lib/**/*.test.js"]
},
"xo": { "xo": {
"space": 2, "space": 2,
"rules": { "rules": {