From aad62d4fa108d0cdf4ebeccee000ee7e66df4745 Mon Sep 17 00:00:00 2001 From: Tiger Kaovilai Date: Thu, 29 May 2025 12:05:13 -0500 Subject: [PATCH] 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 --- jest.config.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/jest.config.ts b/jest.config.ts index e8d07fe..001e0ef 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -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: [ - '/test/e2e/prompt-module/data/commitlint_18/', - '/test/e2e/prompt-module/data/commitlint_19/' + '/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: [ - '/test/e2e/prompt-module/data/' - ], moduleNameMapper: { '^(\\.{1,2}/.*)\\.js$': '$1' }