mirror of
https://gitee.com/antv/g6.git
synced 2024-12-05 05:09:07 +08:00
22 lines
470 B
JavaScript
22 lines
470 B
JavaScript
|
module.exports = {
|
||
|
preset: 'ts-jest/presets/js-with-ts',
|
||
|
transform: {
|
||
|
'^.+\\.[tj]s$': [
|
||
|
'ts-jest',
|
||
|
{
|
||
|
diagnostics: {
|
||
|
exclude: ['**'],
|
||
|
},
|
||
|
tsconfig: {
|
||
|
allowJs: true,
|
||
|
target: 'esnext',
|
||
|
esModuleInterop: true,
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
testRegex: '(/__tests__/.*\\.(test|spec))\\.(ts|tsx|js)$',
|
||
|
collectCoverageFrom: ['src/**/*.ts'],
|
||
|
moduleFileExtensions: ['ts', 'js', 'json'],
|
||
|
};
|