chore: set up ava

# Conflicts:
#	package-lock.json
#	package.json
This commit is contained in:
Oscar 2020-02-16 23:26:53 +01:00
parent e7002614c1
commit d2f7547d2d
2 changed files with 7 additions and 1 deletions

5
ava.config.js Normal file
View File

@ -0,0 +1,5 @@
export default {
files: ['./**/*.spec.js'],
require: ['esm'],
verbose: true
};

View File

@ -13,7 +13,7 @@
"lint:js": "eslint \"11ty/**/*.js\"", "lint:js": "eslint \"11ty/**/*.js\"",
"serve": "concurrently \"npm run serve:site\" \"npm run watch:css\"", "serve": "concurrently \"npm run serve:site\" \"npm run watch:css\"",
"serve:site": "eleventy --serve", "serve:site": "eleventy --serve",
"test": "echo \"Error: no test specified\" && exit 1", "test": "ava",
"watch": "eleventy --watch", "watch": "eleventy --watch",
"watch:css": "parcel watch assets/css/base.scss --out-dir dist/assets/css/" "watch:css": "parcel watch assets/css/base.scss --out-dir dist/assets/css/"
}, },
@ -40,6 +40,7 @@
"prism-themes": "^1.3.0" "prism-themes": "^1.3.0"
}, },
"devDependencies": { "devDependencies": {
"ava": "^3.3.0",
"concurrently": "^5.0.0", "concurrently": "^5.0.0",
"eslint": "^6.8.0", "eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0", "eslint-config-prettier": "^6.10.0",