mirror of
https://gitee.com/antv/g6.git
synced 2024-12-02 11:48:29 +08:00
21 lines
485 B
JavaScript
21 lines
485 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/.*-spec\\.ts?$',
|
||
|
moduleDirectories: [ 'node_modules', 'src' ],
|
||
|
moduleFileExtensions: [ 'js', 'ts', 'json' ],
|
||
|
moduleNameMapper: {
|
||
|
'@g6/(.*)': '<rootDir>/src/$1',
|
||
|
'@g6/types': '<rootDir>/types'
|
||
|
}
|
||
|
};
|