added Setup config for mocking reactflow based on the provided information in ReactFlow documentation ref: N25B-114
14 lines
491 B
JavaScript
14 lines
491 B
JavaScript
export default {
|
|
preset: 'ts-jest/presets/default-esm',
|
|
testEnvironment: 'jsdom',
|
|
extensionsToTreatAsEsm: ['.ts', '.tsx'],
|
|
setupFilesAfterEnv: ['<rootDir>/test/setupTests.ts', '<rootDir>/test/setupFlowTests.ts' ],
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
'\\.(css|scss|sass)$': 'identity-obj-proxy'
|
|
},
|
|
testMatch: ['<rootDir>/test/**/*.test.(ts|tsx)'],
|
|
transform: {
|
|
'^.+\\.(ts|tsx)$': ['ts-jest', { useESM: true, tsconfig: 'tsconfig.jest.json' }]
|
|
}
|
|
}; |