fix problems panel tests

This commit is contained in:
Alexander Zobnin
2019-01-17 09:25:21 +03:00
parent ba2c6aff99
commit d7db242426
9 changed files with 93 additions and 14 deletions

View File

@@ -7,12 +7,20 @@ module.exports = {
// "<rootDir>/dist/test/test-setup/jest-setup.js"
"<rootDir>/src/test-setup/jest-setup.js"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json"
],
"moduleNameMapper": {
"^[./a-zA-Z0-9$_-]+\.css\!?$": "<rootDir>/src/test-setup/cssStub.js",
},
"testRegex": "(\\.|/)(test|spec)\\.(jsx?|tsx?)$",
"transform": {
"^.+\\.js$": "babel-jest"
"^.+\\.js$": "babel-jest",
"^.+\\.(ts|tsx)$": "ts-jest"
},
"coverageDirectory": "<rootDir>/tmp/coverage/",
"collectCoverage": false