diff --git a/jest.config.ts b/jest.config.ts index 001e0ef..b71693e 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -19,7 +19,7 @@ const config: Config = { '/test/e2e/prompt-module/data/' ], transformIgnorePatterns: [ - 'node_modules/(?!(cli-testing-library|@clack|cleye)/.*)' + 'node_modules/(?!(cli-testing-library|@clack|cleye|chalk)/.*)' ], transform: { '^.+\\.(ts|tsx|js|jsx|mjs)$': [ diff --git a/test/unit/gemini.test.ts b/test/unit/gemini.test.ts index d7024f0..554dc49 100644 --- a/test/unit/gemini.test.ts +++ b/test/unit/gemini.test.ts @@ -33,7 +33,7 @@ describe('Gemini', () => { process.env = { ...oldEnv }; jest.mock('@google/generative-ai'); - jest.mock('../src/commands/config'); + jest.mock('../../src/commands/config'); jest.mock('@clack/prompts', () => ({ intro: jest.fn(),