feat: run jest at root level

This commit is contained in:
Julien Fontanet
2017-11-08 15:04:07 +01:00
parent 17e9885586
commit 88d9111196
13 changed files with 36 additions and 341 deletions
+1 -10
View File
@@ -39,18 +39,15 @@
"cross-env": "^5.0.1",
"dependency-check": "^2.9.1",
"event-to-promise": "^0.8.0",
"jest": "^21.2.1",
"rimraf": "^2.6.1"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"dev-test": "jest --bail --watch",
"posttest": "dependency-check ./package.json --entry dist/collection.js index.js unique-index.js view.js",
"prebuild": "rimraf dist/",
"predev": "yarn run prebuild",
"prepublish": "yarn run build",
"test": "jest"
"prepublish": "yarn run build"
},
"babel": {
"plugins": [
@@ -68,11 +65,5 @@
],
"stage-3"
]
},
"jest": {
"roots": [
"<rootDir>/src"
],
"testRegex": "\\.spec\\.js$"
}
}