0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-20 21:32:31 -05:00
logto/packages/cli/jest.config.ts

17 lines
439 B
TypeScript
Raw Normal View History

2022-11-21 16:48:33 +08:00
import type { Config } from '@silverhand/jest-config';
import { merge } from '@silverhand/jest-config';
const config: Config.InitialOptions = {
...merge({
setupFilesAfterEnv: ['./jest.setup.ts'],
roots: ['./src'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
2022-11-22 00:31:25 +08:00
},
}),
// Will update common config soon
transformIgnorePatterns: ['node_modules/(?!(.*(nanoid|jose|ky|@logto))/)'],
};
export default config;