VChart/packages/vmind/jest.performance.config.js
2023-12-29 16:14:05 +08:00

23 lines
526 B
JavaScript

module.exports = {
preset: 'ts-jest',
silent: false,
globals: {
'ts-jest': {
resolveJsonModule: true,
esModuleInterop: true,
experimentalDecorators: true,
module: 'ESNext',
tsconfig: './tsconfig.test.json'
}
},
testTimeout: 60000,
moduleNameMapper: {
axios: 'axios/dist/node/axios.cjs',
'd3-hierarchy': 'd3-hierarchy/dist/d3-hierarchy.min.js'
},
verbose: true,
// 在测试之前设置环境变量
setupFiles: ['./test-setup.js'],
testEnvironment: 'node'
};