We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03586f5 commit a3b3744Copy full SHA for a3b3744
config/jest.config.js
package.json
@@ -9,8 +9,8 @@
9
"clean": "rimraf lib/ yarn-error.log npm-debug.log",
10
"lint": "tslint --project .",
11
"lint:fix": "tslint --fix --project .",
12
- "test": "jest --config ./config/jest.config.js",
13
- "test:watch": "jest --config ./config/jest.config.js --watch"
+ "test": "jest",
+ "start": "jest --watch"
14
},
15
"repository": {
16
"type": "git",
@@ -58,5 +58,14 @@
58
"hooks": {
59
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
60
}
61
+ },
62
+ "jest": {
63
+ "preset": "ts-jest",
64
+ "moduleNameMapper": {
65
+ "\\.(css|less|sass|scss)$": "<rootDir>/tests/styleMock.js"
66
67
+ "setupFilesAfterEnv": [
68
+ "<rootDir>tests/setupTests.js"
69
+ ]
70
71
0 commit comments