0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-23 20:33:16 -05:00
logto/packages/cli/jest.config.ts

24 lines
557 B
TypeScript
Raw Normal View History

2022-11-21 03:48:33 -05:00
import type { Config } from '@silverhand/jest-config';
import { merge } from '@silverhand/jest-config';
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'],
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'],
});
export default config;