From 7cc6be6b0206bf290f59d7e07307212b1f9b166a Mon Sep 17 00:00:00 2001 From: Yuki Hattori Date: Sat, 22 Feb 2025 06:44:00 +0900 Subject: [PATCH] Update watcher test to prevent mocking logger function --- test/watcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/watcher.ts b/test/watcher.ts index f60391c5..8ad66d94 100644 --- a/test/watcher.ts +++ b/test/watcher.ts @@ -79,7 +79,7 @@ describe('Watcher', () => { const onUnlink = on.mock.calls.find(([e]) => e === 'unlink')[1] // Callbacks - const log = jest.spyOn(watcher as any, 'log').mockImplementation() + const log = jest.spyOn(watcher as any, 'log') const conv = jest.spyOn(watcher as any, 'convert').mockImplementation() const del = jest.spyOn(watcher as any, 'delete').mockImplementation()