[REF] move jest.config.js into package.json

This commit is contained in:
Géry Debongnie
2019-04-18 07:40:27 +02:00
parent 2c218c4463
commit d07f396578
2 changed files with 20 additions and 9 deletions
-9
View File
@@ -1,9 +0,0 @@
module.exports = {
roots: ["<rootDir>/src", "<rootDir>/tests"],
transform: {
"^.+\\.ts?$": "ts-jest"
},
verbose: false,
testRegex: "(/tests/.*(test|spec))\\.ts?$",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"]
};
+20
View File
@@ -51,6 +51,26 @@
"uglify-es": "^3.3.9"
},
"dependencies": {
"jest-environment-jsdom": "^24.7.1",
"snabbdom": "^0.7.3"
},
"jest": {
"roots": [
"<rootDir>/src",
"<rootDir>/tests"
],
"transform": {
"^.+\\.ts?$": "ts-jest"
},
"verbose": false,
"testRegex": "(/tests/.*(test|spec))\\.ts?$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
}
}