-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
26 lines (26 loc) · 707 Bytes
/
jest.config.js
File metadata and controls
26 lines (26 loc) · 707 Bytes
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
module.exports = {
testPathIgnorePatterns: ['/node_modules/', '/src/', '/lib/'],
preset: 'ts-jest/presets/js-with-ts',
runner: 'jest-electron/runner',
testEnvironment: 'jest-electron/environment',
setupFilesAfterEnv: [
'jest-extended/all',
],
transform: {
'\\.worker.ts$': '<rootDir>/lib/jest-transform',
},
moduleNameMapper: {
'^worker:(.*)$': '$1',
'^@pixi/webworker-plugins$': '<rootDir>/src',
},
testMatch: ['**/*.tests.ts'],
globals: {
'ts-jest': {
tsconfig: {
module: 'ESNext',
esModuleInterop: true,
},
diagnostics: false,
},
},
};