Add test for the language switcher

This commit is contained in:
Adrian Rumpold
2025-04-25 11:09:31 +02:00
parent 00c32f72c2
commit b281059218
7 changed files with 4473 additions and 12 deletions

12
frontend/jest.config.js Normal file
View File

@@ -0,0 +1,12 @@
/** @type {import('ts-jest').JestConfigWithTsJest} **/
export default {
preset: "ts-jest",
testEnvironment: "jsdom",
transform: {
"^.+\\.tsx?$": ["ts-jest", { tsconfig: "tsconfig.app.json" }],
},
moduleNameMapper: {
"\\.(css|less|scss|sss|styl)$": "<rootDir>/node_modules/jest-css-modules",
},
setupFilesAfterEnv: ["<rootDir>/jest.setup.ts"],
};