mirror of https://github.com/onivim/oni.git
36 lines
1.3 KiB
JavaScript
36 lines
1.3 KiB
JavaScript
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",
|
|
},
|
|
},
|
|
}
|