/ jest_config / jest.int.config.json
jest.int.config.json
 1  {
 2    "rootDir": "../",
 3    "transform": {
 4      "^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
 5    },
 6    "testRegex": "(/__tests__/.*|(\\.|/)(int))\\.(jsx?|tsx?)$",
 7    "moduleDirectories": ["node_modules", "common"],
 8    "moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json"],
 9    "moduleNameMapper": {
10      "shared/(.*)": "<rootDir>/shared/$1",
11      "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
12        "<rootDir>/jest_config/__mocks__/fileMock.ts",
13      "\\.(css|scss)$": "<rootDir>/jest_config/__mocks__/styleMock.ts"
14    },
15    "testPathIgnorePatterns": [],
16    "setupFiles": [
17      "<rootDir>/jest_config/setupJest.js",
18      "<rootDir>/jest_config/__mocks__/localStorage.ts"
19    ],
20    "automock": false,
21    "snapshotSerializers": ["enzyme-to-json/serializer"],
22    "browser": true,
23    "collectCoverage": true
24  }