forked from onivim/oni
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
35 lines (35 loc) · 1.29 KB
/
jest.config.js
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
module.exports = {
bail: true,
verbose: false,
collectCoverage: true,
coverageDirectory: "<rootDir>/coverage/jest/",
setupFiles: ["<rootDir>/ui-tests/jestsetup.ts"],
moduleNameMapper: {
electron: "<rootDir>/ui-tests/mocks/electronMock.ts",
PersistentSettings: "<rootDir>/ui-tests/mocks/PersistentSettings.ts",
Utility: "<rootDir>/ui-tests/mocks/Utility.ts",
Configuration: "<rootDir>/ui-tests/mocks/Configuration.ts",
UserConfiguration: "<rootDir>/ui-tests/mocks/UserConfiguration.ts",
KeyboardLayout: "<rootDir>/ui-tests/mocks/keyboardLayout.ts",
SharedNeovimInstance: "<rootDir>/ui-tests/mocks/SharedNeovimInstance.ts",
},
snapshotSerializers: ["enzyme-to-json/serializer"],
transform: {
"^.+\\.tsx?$": "ts-jest",
},
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
modulePathIgnorePatterns: ["<rootDir>/dist/"],
globals: {
"ts-jest": {
babelConfig: {
env: {
test: {
plugins: ["dynamic-import-node"],
},
},
},
tsConfigFile: "./ui-tests/tsconfig.react.json",
},
},
}