This commit is contained in:
2025-08-17 13:21:01 +02:00
commit c988d51438
51 changed files with 5742 additions and 0 deletions

19
jest.config.ts Normal file
View File

@@ -0,0 +1,19 @@
import type { Config } from 'jest'
const config: Config = {
testEnvironment: 'node',
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{ tsconfig: 'tsconfig.json', isolatedModules: true }
]
},
testMatch: ['**/tests/unit/**/*.test.ts'],
moduleNameMapper: {
'^@/components/(.*)$': '<rootDir>/components/$1',
'^@/lib/(.*)$': '<rootDir>/lib/$1',
'^@/locales/(.*)$': '<rootDir>/locales/$1',
'^@/styles/(.*)$': '<rootDir>/styles/$1'
}
}
export default config