mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
17 lines
513 B
TypeScript
17 lines
513 B
TypeScript
import type { Config } from '@silverhand/jest-config';
|
|
import { merge } from '@silverhand/jest-config';
|
|
|
|
const config: Config.InitialOptions = {
|
|
...merge({
|
|
testEnvironment: 'jsdom',
|
|
setupFilesAfterEnv: ['<rootDir>/src/jest.setup.ts'],
|
|
transform: {
|
|
'\\.(svg)$': 'jest-transformer-svg',
|
|
'\\.(png)$': 'jest-transform-stub',
|
|
},
|
|
}),
|
|
// Will update common config soon
|
|
transformIgnorePatterns: ['node_modules/(?!(.*(nanoid|jose|ky|@logto|@silverhand))/)'],
|
|
};
|
|
|
|
export default config;
|