g6/jest.config.js

20 lines
533 B
JavaScript
Raw Normal View History

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: {
'@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
};