2017-04-12 05:01:02 +00:00
|
|
|
{
|
2017-10-25 02:17:26 +00:00
|
|
|
"rootDir": "../",
|
2017-09-25 02:06:28 +00:00
|
|
|
"transform": {
|
|
|
|
"^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
|
|
|
|
},
|
|
|
|
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
|
2017-10-25 02:17:26 +00:00
|
|
|
"moduleDirectories": ["node_modules", "common"],
|
2018-01-11 06:44:13 +00:00
|
|
|
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "worker.ts"],
|
2017-10-25 02:17:26 +00:00
|
|
|
"moduleNameMapper": {
|
|
|
|
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
|
|
|
|
"<rootDir>/jest_config/__mocks__/fileMock.ts",
|
2018-01-11 06:44:13 +00:00
|
|
|
"\\.(css|scss|less)$": "<rootDir>/jest_config/__mocks__/styleMock.ts",
|
2018-01-26 19:53:51 +00:00
|
|
|
"\\.worker.ts":"<rootDir>/jest_config/__mocks__/workerMock.js"
|
2017-10-25 02:17:26 +00:00
|
|
|
},
|
2017-07-04 12:19:04 +00:00
|
|
|
"testPathIgnorePatterns": ["<rootDir>/common/config"],
|
2017-10-25 02:17:26 +00:00
|
|
|
"setupFiles": [
|
|
|
|
"<rootDir>/jest_config/setupJest.js",
|
|
|
|
"<rootDir>/jest_config/__mocks__/localStorage.ts"
|
|
|
|
],
|
2017-07-04 12:19:04 +00:00
|
|
|
"automock": false,
|
2017-10-25 02:17:26 +00:00
|
|
|
"snapshotSerializers": ["enzyme-to-json/serializer"],
|
|
|
|
"browser": true
|
2017-04-12 05:01:02 +00:00
|
|
|
}
|