2022-11-21 03:38:24 -05:00
|
|
|
import type { Config } from '@silverhand/jest-config';
|
|
|
|
import { merge } from '@silverhand/jest-config';
|
2022-04-24 05:02:18 -05:00
|
|
|
|
|
|
|
const config: Config.InitialOptions = merge({
|
2022-11-21 03:38:24 -05:00
|
|
|
preset: 'ts-jest/presets/js-with-ts-esm',
|
2022-09-29 22:48:12 -05:00
|
|
|
testPathIgnorePatterns: ['/core/connectors/'],
|
2022-04-24 05:02:18 -05:00
|
|
|
setupFilesAfterEnv: ['jest-matcher-specific-error', './jest.setup.ts'],
|
2022-11-21 03:38:24 -05:00
|
|
|
moduleNameMapper: {
|
|
|
|
'^#src/(.*)\\.js(x)?$': '<rootDir>/src/$1',
|
|
|
|
'^(\\.{1,2}/.*)\\.js$': '$1',
|
|
|
|
},
|
|
|
|
globals: {
|
|
|
|
'ts-jest': {
|
|
|
|
useESM: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
extensionsToTreatAsEsm: ['.ts', '.tsx'],
|
2022-04-24 05:02:18 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
export default config;
|