feat: run jest at root level

This commit is contained in:
Julien Fontanet
2017-11-08 12:05:03 +01:00
parent 17e9885586
commit 88d9111196
13 changed files with 36 additions and 341 deletions

View File

@@ -58,20 +58,17 @@
"babel-preset-stage-0": "^6.24.1",
"cross-env": "^5.0.5",
"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",
"plot": "gnuplot -p memory-test.gnu",
"posttest": "dependency-check ./package.json",
"prebuild": "rimraf dist/",
"predev": "npm run prebuild",
"prepublish": "npm run build",
"test": "jest"
"prepublish": "npm run build"
},
"babel": {
"plugins": [
@@ -89,11 +86,5 @@
],
"stage-0"
]
},
"jest": {
"roots": [
"<rootDir>/src"
],
"testRegex": "\\.spec\\.js$"
}
}