-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.unit.config.json
36 lines (36 loc) · 1.19 KB
/
jest.unit.config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"displayName": "ts-express-react-starter-kit - unit",
"setupFiles": [
"raf/polyfill",
"jest-date-mock",
"core-js/modules/es7.symbol.async-iterator",
"core-js/modules/es7.symbol.observable"
],
"setupTestFrameworkScriptFile": "./src/__tests__/unitTestSetup.ts",
"transform": {
"\\.(gql|graphql)$": "jest-transform-graphql",
"\\.(ts|tsx)$": "ts-jest",
".*": "<rootDir>/babel-jest.js"
},
"watchPathIgnorePatterns": ["/lib/*", "/node_modules/*"],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|html|yml|ico)$": "<rootDir>/src/__mocks__/fileMock.js",
"^code/(.*)": "<rootDir>/src/code/$1",
"^__tests__/(.*)": "<rootDir>/src/__tests__/$1"
},
"testRegex": "src/?.*/__tests__/.*\\.unit\\.spec\\.(ts|tsx|js|jsx)$",
"moduleFileExtensions": ["js", "json", "jsx", "ts", "tsx"],
"globals": {
"__DEV__": true,
"__SERVER__": false,
"__PROD__": false,
"__HMR__": false,
"ts-jest": {
"tsConfig": "./tsconfig.test.json"
}
},
"snapshotSerializers": ["enzyme-to-json/serializer"],
"testURL": "http://localhost",
"preset": "ts-jest/presets/js-with-babel",
"testMatch": null
}