forked from pixijs/pixijs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
35 lines (35 loc) · 1.11 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 = {
testPathIgnorePatterns: ['/node_modules/', '/src/', '/dist/', '/lib/', '/out/', '/bundles/'],
preset: 'ts-jest/presets/js-with-ts',
runner: 'jest-electron/runner',
testEnvironment: 'jest-electron/environment',
setupFilesAfterEnv: [
'jest-extended/all',
],
globalSetup: '<rootDir>/test/jest-global-setup.ts',
globalTeardown: '<rootDir>/test/jest-global-teardown.ts',
transform: {
'\\.vert$': 'jest-raw-loader',
'\\.frag$': 'jest-raw-loader',
},
moduleNameMapper: {
'^@pixi/(.*)$': '<rootDir>/packages/$1/src',
},
testMatch: ['**/?(*.)+(spec|tests).[tj]s?(x)'],
snapshotResolver: '<rootDir>/test/jest-snapshot-resolver.js',
globals: {
'ts-jest': {
tsconfig: {
module: 'ESNext',
esModuleInterop: true,
},
diagnostics: false,
},
},
collectCoverageFrom: [
'<rootDir>/packages/**/*.ts',
'!<rootDir>/packages/**/*.d.ts',
'!<rootDir>/packages/polyfill/**/*.ts',
],
coverageDirectory: '<rootDir>/dist/coverage',
};