Add test for the language switcher
This commit is contained in:
12
frontend/jest.config.js
Normal file
12
frontend/jest.config.js
Normal 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"],
|
||||
};
|
||||
Reference in New Issue
Block a user