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:
+1
-6
@@ -16,8 +16,7 @@ const config: Config = {
|
|||||||
// Tell Jest to ignore the specific duplicate package.json files
|
// Tell Jest to ignore the specific duplicate package.json files
|
||||||
// that are causing Haste module naming collisions
|
// that are causing Haste module naming collisions
|
||||||
modulePathIgnorePatterns: [
|
modulePathIgnorePatterns: [
|
||||||
'<rootDir>/test/e2e/prompt-module/data/commitlint_18/',
|
'<rootDir>/test/e2e/prompt-module/data/'
|
||||||
'<rootDir>/test/e2e/prompt-module/data/commitlint_19/'
|
|
||||||
],
|
],
|
||||||
transformIgnorePatterns: [
|
transformIgnorePatterns: [
|
||||||
'node_modules/(?!(cli-testing-library|@clack|cleye)/.*)'
|
'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: {
|
moduleNameMapper: {
|
||||||
'^(\\.{1,2}/.*)\\.js$': '$1'
|
'^(\\.{1,2}/.*)\\.js$': '$1'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user