代码拉取完成,页面将自动刷新
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: {
'\\.worker.ts$': '@pixi/webworker-plugins/lib/jest-transform',
'\\.vert$': 'jest-raw-loader',
'\\.frag$': 'jest-raw-loader',
},
moduleNameMapper: {
'^worker:(.*)$': '$1',
'^@pixi/(?!colord)(.*)$': '<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',
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。