Skip to content

Commit

Permalink
fix: jest submodule problems, by ignoring problematic imports
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelblum committed Feb 25, 2025
1 parent 3defad9 commit f0745a6
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions packages/admin/cms-admin/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ export default {
// Indicates which provider should be used to instrument code for coverage
coverageProvider: "v8",

// A set of global variables that need to be available in all test environments
globals: {
"ts-jest": {
tsconfig: "tsconfig.test.json",
},
},

// A preset that is used as a base for Jest's configuration
preset: "ts-jest",

Expand All @@ -36,5 +29,16 @@ export default {

moduleNameMapper: {
"^react-dnd$": "<rootDir>/testing/stub-file.ts",
"@mui/material/styles/createPalette": "<rootDir>/testing/stub-file.ts",
"@mui/material/styles/createTypography": "<rootDir>/testing/stub-file.ts",
"@mui/material/styles/zIndex": "<rootDir>/testing/stub-file.ts",
},
transform: {
"^.+\\.tsx?$": [
"ts-jest",
{
tsconfig: "tsconfig.test.json",
},
],
},
};
};

0 comments on commit f0745a6

Please sign in to comment.