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": {
|
2018-06-15 23:25:29 +00:00
|
|
|
"shared/(.*)": "<rootDir>/shared/$1",
|
2017-10-25 02:17:26 +00:00
|
|
|
"\\.(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-03-20 20:08:57 +00:00
|
|
|
"\\.(css|scss)$": "<rootDir>/jest_config/__mocks__/styleMock.ts",
|
2018-02-27 01:20:41 +00:00
|
|
|
"\\.worker.ts": "<rootDir>/jest_config/__mocks__/workerMock.js"
|
2017-10-25 02:17:26 +00:00
|
|
|
},
|
2018-05-10 00:32:43 +00:00
|
|
|
"testPathIgnorePatterns": ["dist"],
|
2018-05-13 18:32:45 +00:00
|
|
|
"coveragePathIgnorePatterns": ["components", "containers", "vendor", "spec"],
|
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"],
|
2018-04-06 01:51:48 +00:00
|
|
|
"browser": true,
|
|
|
|
"collectCoverage": true
|
2017-04-12 05:01:02 +00:00
|
|
|
}
|