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