mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-04-20 03:02:51 -04:00
fix: resolve unit test failures
- Add chalk to jest transformIgnorePatterns so ESM chalk import works - Fix wrong mock path in gemini.test.ts (../src -> ../../src) Signed-off-by: majiayu000 <1835304752@qq.com>
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user