diff --git a/test/search-and-replace.test.ts b/test/search-and-replace.test.ts index bbf34e9..de4a663 100644 --- a/test/search-and-replace.test.ts +++ b/test/search-and-replace.test.ts @@ -98,7 +98,7 @@ describe('searchAndReplace', () => { }) it('should handle errors gracefully', async () => { - const consoleErrorSpy = vi.spyOn(console, 'error') + const consoleErrorSpy = vi.spyOn(console, 'error').mockImplementation(() => {}) // Mock the file system and simulate an error for readFile mockFs({