2022-11-21 03:48:33 -05:00
|
|
|
import type { Config } from '@silverhand/jest-config';
|
|
|
|
import { merge } from '@silverhand/jest-config';
|
2022-10-09 11:40:04 -05:00
|
|
|
|
|
|
|
const config: Config.InitialOptions = merge({
|
2022-11-21 11:31:25 -05:00
|
|
|
// Preset: 'ts-jest/presets/default-esm',
|
|
|
|
// TransformIgnorePatterns: ['schemas'],
|
|
|
|
setupFilesAfterEnv: ['./jest.setup.ts'],
|
2022-10-09 11:40:04 -05:00
|
|
|
roots: ['./src'],
|
2022-11-21 03:48:33 -05:00
|
|
|
moduleNameMapper: {
|
|
|
|
'^(\\.{1,2}/.*)\\.js$': '$1',
|
|
|
|
},
|
2022-11-21 11:31:25 -05:00
|
|
|
globals: {
|
|
|
|
'ts-jest': {
|
|
|
|
useESM: true,
|
|
|
|
diagnostics: {
|
|
|
|
ignoreCodes: [1343],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// ExtensionsToTreatAsEsm: ['.ts', '.tsx'],
|
2022-10-09 11:40:04 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
export default config;
|