mirror of
https://gitee.com/antv/g6.git
synced 2024-12-05 05:09:07 +08:00
26 lines
705 B
JavaScript
26 lines
705 B
JavaScript
module.exports = {
|
|
runner: 'jest-electron/runner',
|
|
testEnvironment: 'jest-electron/environment',
|
|
preset: 'ts-jest',
|
|
collectCoverage: false,
|
|
collectCoverageFrom: ['src/**/*.{ts,js}', '!**/node_modules/**', '!**/vendor/**'],
|
|
testRegex: '/tests/unit/.*-spec\\.ts?$',
|
|
moduleDirectories: ['node_modules', 'src'],
|
|
moduleFileExtensions: ['js', 'ts', 'json'],
|
|
moduleNameMapper: {
|
|
'@g6/types': '<rootDir>/types',
|
|
'@g6/(.*)': '<rootDir>/src/$1',
|
|
},
|
|
transformIgnorePatterns: ['./node_modules/'],
|
|
|
|
globals: {
|
|
'ts-jest': {
|
|
diagnostics: false,
|
|
},
|
|
},
|
|
testPathIgnorePatterns: [
|
|
'/tests/unit/image-minimap-spec.ts',
|
|
'/tests/unit/edge-filter-lens-spec.ts',
|
|
],
|
|
};
|