Skip to content

Commit aad62d4

Browse files
committed
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
1 parent 21e9216 commit aad62d4

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

jest.config.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ const config: Config = {
1616
// Tell Jest to ignore the specific duplicate package.json files
1717
// that are causing Haste module naming collisions
1818
modulePathIgnorePatterns: [
19-
'<rootDir>/test/e2e/prompt-module/data/commitlint_18/',
20-
'<rootDir>/test/e2e/prompt-module/data/commitlint_19/'
19+
'<rootDir>/test/e2e/prompt-module/data/'
2120
],
2221
transformIgnorePatterns: [
2322
'node_modules/(?!(cli-testing-library|@clack|cleye)/.*)'
@@ -35,10 +34,6 @@ const config: Config = {
3534
}
3635
]
3736
},
38-
// Fix Haste module naming collision
39-
modulePathIgnorePatterns: [
40-
'<rootDir>/test/e2e/prompt-module/data/'
41-
],
4237
moduleNameMapper: {
4338
'^(\\.{1,2}/.*)\\.js$': '$1'
4439
}

0 commit comments

Comments
 (0)