mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 07:24:51 +00:00
PoC
This commit is contained in:
@@ -1,8 +1,19 @@
|
||||
import type { JestConfigWithTsJest } from 'ts-jest'
|
||||
import type { Config } from '@jest/types';
|
||||
|
||||
const jestConfig: JestConfigWithTsJest = {
|
||||
preset: 'ts-jest',
|
||||
testEnvironment: 'node'
|
||||
}
|
||||
|
||||
export default jestConfig
|
||||
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',
|
||||
'<rootDir>/jest-setup.ts',
|
||||
],
|
||||
moduleNameMapper: {
|
||||
'^#/(.*)$': '<rootDir>/$1',
|
||||
},
|
||||
testEnvironment: 'jsdom',
|
||||
clearMocks: true,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user