mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
17 lines
358 B
JavaScript
17 lines
358 B
JavaScript
module.exports = {
|
|
preset: 'ts-jest/presets/js-with-ts',
|
|
testEnvironment: 'jsdom',
|
|
testRegex: '/tests/.*\\.(test|spec)?\\.(ts|tsx)$',
|
|
setupFiles: [
|
|
'./tests/init.ts'
|
|
],
|
|
coverageDirectory: './test/report/',
|
|
globals: {
|
|
CC_DEV: true,
|
|
CC_TEST: true,
|
|
CC_PHYSICS_BUILTIN: true,
|
|
'ts-jest': {
|
|
diagnostics: false
|
|
}
|
|
}
|
|
}; |