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"],
|
|
|
|
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json"],
|
|
|
|
"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",
|
|
|
|
"\\.(css|scss|less)$": "<rootDir>/jest_config/__mocks__/styleMock.ts"
|
|
|
|
},
|
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
|
|
|
}
|