Files
cocos4/jest.config.js
T
2019-11-23 18:17:45 +08:00

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
}
}
};