2019-12-10 17:54:47 +08:00
|
|
|
module.exports = {
|
|
|
|
runner: 'jest-electron/runner',
|
|
|
|
testEnvironment: 'jest-electron/environment',
|
|
|
|
preset: 'ts-jest',
|
|
|
|
collectCoverage: false,
|
2020-02-14 10:10:54 +08:00
|
|
|
collectCoverageFrom: ['src/**/*.{ts,js}', '!**/node_modules/**', '!**/vendor/**'],
|
2019-12-10 17:54:47 +08:00
|
|
|
testRegex: '/tests/.*-spec\\.ts?$',
|
2020-02-14 10:10:54 +08:00
|
|
|
moduleDirectories: ['node_modules', 'src'],
|
|
|
|
moduleFileExtensions: ['js', 'ts', 'json'],
|
2019-12-10 17:54:47 +08:00
|
|
|
moduleNameMapper: {
|
2019-12-13 14:40:57 +08:00
|
|
|
'@g6/types': '<rootDir>/types',
|
2020-02-14 10:10:54 +08:00
|
|
|
'@g6/(.*)': '<rootDir>/src/$1',
|
2019-12-17 17:02:18 +08:00
|
|
|
},
|
|
|
|
globals: {
|
|
|
|
'ts-jest': {
|
2020-02-14 10:10:54 +08:00
|
|
|
diagnostics: false,
|
|
|
|
},
|
|
|
|
},
|
2019-12-10 17:54:47 +08:00
|
|
|
};
|