2 Star 2 Fork 0

无名/pixijs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
jest.config.js 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
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',
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wumingqyl_admin/pixijs.git
git@gitee.com:wumingqyl_admin/pixijs.git
wumingqyl_admin
pixijs
pixijs
dev

搜索帮助