Files
zitadel/apps/login/jest.config.ts

17 lines
417 B
TypeScript
Raw Normal View History

2023-06-05 13:02:36 +02:00
import type { Config } from '@jest/types';
2023-05-25 17:11:36 +02:00
2023-06-05 13:02:36 +02:00
export default async (): Promise<Config.InitialOptions> => {
return {
preset: 'ts-jest',
transform: {
"^.+\\.tsx?$": ['ts-jest', { tsconfig: 'tsconfig.test.json' }],
},
setupFilesAfterEnv: [
'@testing-library/jest-dom/extend-expect',
],
moduleNameMapper: {
'^#/(.*)$': '<rootDir>/$1',
},
testEnvironment: 'jsdom',
};
};