g6/packages/core/jest.config.js
Yanyan Wang dcb27b013f
fix: preset layout with gpu layout; (#4346)
* fix: preset layout with gpu layout;

* fix: isBig must be number for use in path (#4306)

* fix: Fixed issue of nested child combo being rendered under parent, preventing interation with it (#4310)

* fix: Node dragging starting one event too late. (#4365)

* fix: large graph demo page (#4321)

* fix: Node dragging starting one event too late.

---------

Co-authored-by: Yanyan Wang <yanyanwang93@gmail.com>

* feat: tree graph layout with excludeInvisibles prop, closes: #4340; fix: type problems, closes: #4301;

* docs: update change log and site docs

* chore: refine

---------

Co-authored-by: ensconced <joe.barnett876@gmail.com>
Co-authored-by: Gary McGovern <gary.mcgovern@siren.io>
Co-authored-by: Kevin Fontanari <kevin.fontanari@gmail.com>
2023-03-21 17:55:58 +08:00

21 lines
570 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/types': '<rootDir>/types',
'@g6/(.*)': '<rootDir>/src/$1',
"^d3-(.*)$": `d3-$1/dist/d3-$1`,
},
globals: {
'ts-jest': {
diagnostics: false,
},
},
};