bugfix: set test environment to node by default

This commit is contained in:
Kamil Myśliwiec 2018-08-16 20:05:59 +02:00
parent 841e57afa4
commit e677e9b9dd
No known key found for this signature in database
GPG Key ID: 75F02E89A1A1092B
1 changed files with 3 additions and 6 deletions

View File

@ -48,16 +48,13 @@
"webpack-node-externals": "^1.6.0" "webpack-node-externals": "^1.6.0"
}, },
"jest": { "jest": {
"moduleFileExtensions": [ "moduleFileExtensions": ["js", "json", "ts"],
"js",
"json",
"ts"
],
"rootDir": "src", "rootDir": "src",
"testRegex": ".spec.ts$", "testRegex": ".spec.ts$",
"transform": { "transform": {
"^.+\\.(t|j)s$": "ts-jest" "^.+\\.(t|j)s$": "ts-jest"
}, },
"coverageDirectory": "../coverage" "coverageDirectory": "../coverage",
"testEnvironment": "node"
} }
} }