fix: remove duplicate modulePathIgnorePatterns in Jest config

- Fixed Jest configuration error by removing duplicate modulePathIgnorePatterns property
- Consolidated the ignore patterns into a single declaration
- This resolves the TypeScript compilation error preventing tests from running
This commit is contained in:
Tiger Kaovilai
2025-05-29 12:05:13 -05:00
parent 21e92164e7
commit aad62d4fa1
+1 -6
View File
@@ -16,8 +16,7 @@ const config: Config = {
// Tell Jest to ignore the specific duplicate package.json files
// that are causing Haste module naming collisions
modulePathIgnorePatterns: [
'<rootDir>/test/e2e/prompt-module/data/commitlint_18/',
'<rootDir>/test/e2e/prompt-module/data/commitlint_19/'
'<rootDir>/test/e2e/prompt-module/data/'
],
transformIgnorePatterns: [
'node_modules/(?!(cli-testing-library|@clack|cleye)/.*)'
@@ -35,10 +34,6 @@ const config: Config = {
}
]
},
// Fix Haste module naming collision
modulePathIgnorePatterns: [
'<rootDir>/test/e2e/prompt-module/data/'
],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1'
}