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

17 lines
471 B
TypeScript
Raw Normal View History

import type { Config } from '@silverhand/jest-config';
import { merge } from '@silverhand/jest-config';
2022-02-19 02:14:23 -05:00
const config: Config.InitialOptions = {
...merge({
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['<rootDir>/src/jest.setup.ts'],
transform: {
'\\.(svg)$': 'jest-transformer-svg',
},
}),
// Will update common config soon
2022-12-23 10:19:49 -05:00
transformIgnorePatterns: ['node_modules/(?!(.*(nanoid|jose|ky|@logto|@silverhand))/)'],
};
2022-02-19 02:14:23 -05:00
export default config;