full upgrade to dev
This commit is contained in:
@@ -12,8 +12,8 @@ const config: Config = {
|
||||
testEnvironment: "jsdom",
|
||||
// Add more setup options before each test is run
|
||||
setupFilesAfterEnv: ["<rootDir>/jest.setup.ts"],
|
||||
// Ignore tests inside __mocks__ directory
|
||||
testPathIgnorePatterns: ["/node_modules/", "/__mocks__/", "/.next/"],
|
||||
// Ignore tests inside __mocks__ directory and E2E tests (Playwright)
|
||||
testPathIgnorePatterns: ["/node_modules/", "/__mocks__/", "/.next/", "/e2e/"],
|
||||
// Transform react-markdown and other ESM modules
|
||||
transformIgnorePatterns: [
|
||||
"node_modules/(?!(react-markdown|remark-.*|rehype-.*|unified|bail|is-plain-obj|trough|vfile|vfile-message|unist-.*|micromark|parse-entities|character-entities|mdast-.*|hast-.*|property-information|space-separated-tokens|comma-separated-tokens|web-namespaces|zwitch|longest-streak|ccount)/)",
|
||||
@@ -23,7 +23,7 @@ const config: Config = {
|
||||
"^@/(.*)$": "<rootDir>/$1",
|
||||
},
|
||||
// Exclude problematic directories from haste
|
||||
modulePathIgnorePatterns: ["<rootDir>/.next/", "<rootDir>/node_modules/"],
|
||||
modulePathIgnorePatterns: ["<rootDir>/.next/", "<rootDir>/node_modules/", "<rootDir>/e2e/"],
|
||||
// Clear mocks between tests
|
||||
clearMocks: true,
|
||||
// Reset modules between tests
|
||||
|
||||
Reference in New Issue
Block a user