25 lines
936 B
JSON
25 lines
936 B
JSON
{
|
|
"rootDir": "../",
|
|
"transform": {
|
|
"^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
|
|
},
|
|
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
|
|
"moduleDirectories": ["node_modules", "common"],
|
|
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "worker.ts"],
|
|
"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",
|
|
"\\.worker.ts":"<rootDir>/jest_config/__mocks__/workerMock.js",
|
|
"^shared(.*)$": "<rootDir>/shared$1"
|
|
},
|
|
"testPathIgnorePatterns": ["<rootDir>/common/config"],
|
|
"setupFiles": [
|
|
"<rootDir>/jest_config/setupJest.js",
|
|
"<rootDir>/jest_config/__mocks__/localStorage.ts"
|
|
],
|
|
"automock": false,
|
|
"snapshotSerializers": ["enzyme-to-json/serializer"],
|
|
"browser": true
|
|
}
|