mirror of
https://github.com/VisActor/VChart
synced 2024-11-22 17:26:19 +00:00
23 lines
526 B
JavaScript
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'
|
|
};
|