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
@@ -49,19 +49,16 @@
"babel-preset-stage-3": "^6.24.1",
"cross-env": "^5.0.1",
"dependency-check": "^2.9.1",
"jest": "^21.2.1",
"rimraf": "^2.6.1"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"commitmsg": "npm test",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"dev-test": "jest --bail --watch",
"posttest": "dependency-check ./package.json",
"prebuild": "rimraf dist/",
"predev": "npm run prebuild",
"prepublish": "npm run build",
"test": "jest"
"prepublish": "npm run build"
},
"babel": {
"plugins": [
@@ -79,11 +76,5 @@
],
"stage-3"
]
},
"jest": {
"roots": [
"<rootDir>/src"
],
"testRegex": "\\.spec\\.js$"
}
}