Skip to content

Commit f4feb0f

Browse files
authored
Merge pull request #210 from 0xObsidian/0xObsidian/error-handling-in-search-and-replace-test
fix(test): error handling in search-and-replace test
2 parents d699515 + 438a272 commit f4feb0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/search-and-replace.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ describe('searchAndReplace', () => {
9898
})
9999

100100
it('should handle errors gracefully', async () => {
101-
const consoleErrorSpy = vi.spyOn(console, 'error')
101+
const consoleErrorSpy = vi.spyOn(console, 'error').mockImplementation(() => {})
102102

103103
// Mock the file system and simulate an error for readFile
104104
mockFs({

0 commit comments

Comments
 (0)