Skip to content
This repository has been archived by the owner on Feb 7, 2022. It is now read-only.

Commit

Permalink
Add test infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
bookmoons committed Dec 10, 2018
1 parent f9b075b commit 412c48e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .ava.json
@@ -0,0 +1,3 @@
{
"verbose": true
}
6 changes: 6 additions & 0 deletions ava.config.js
@@ -0,0 +1,6 @@
import fs from 'fs'

const configJson = fs.readFileSync('.ava.json')
const config = JSON.parse(configJson)

export default config
7 changes: 6 additions & 1 deletion package.json
Expand Up @@ -20,15 +20,20 @@
"@rgrove/parse-xml": "^1.1.1"
},
"devDependencies": {
"ava": "^1.0.0-rc.2",
"cross-env": "^5.2.0",
"jsdoc": "^3.5.5",
"npm-run-all": "^4.1.5",
"sinon": "^7.1.1",
"snazzy": "^8.0.0",
"standard": "^12.0.1"
},
"scripts": {
"lint-js": "standard",
"lint": "npm-run-all lint-js",
"doc": "jsdoc -c .jsdoc.json --pedantic"
"doc": "jsdoc -c .jsdoc.json --pedantic",
"test-unit": "cross-env NODE_PATH=src:test ava test/unit",
"test": "npm-run-all test-unit",
"test-hoc": "cross-env NODE_PATH=src:test ava"
}
}

0 comments on commit 412c48e

Please sign in to comment.