From 5ea1d01345f9f8025dc881003d40d034bde81fda Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Fri, 19 Mar 2021 16:46:10 -0400 Subject: [PATCH] refactor: move mocking downstream --- src/__tests__/index.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/__tests__/index.test.ts b/src/__tests__/index.test.ts index 72b640a..42631a9 100644 --- a/src/__tests__/index.test.ts +++ b/src/__tests__/index.test.ts @@ -42,9 +42,9 @@ describe('Packwatch', () => { let mockError let workspacePath beforeEach(() => { - mockLogger = jest.spyOn(logger, 'log').mockImplementation() - mockWarn = jest.spyOn(logger, 'warn').mockImplementation() - mockError = jest.spyOn(logger, 'error').mockImplementation() + mockLogger = jest.spyOn(console, 'log').mockImplementation() + mockWarn = jest.spyOn(console, 'warn').mockImplementation() + mockError = jest.spyOn(console, 'error').mockImplementation() }) afterEach(async () => {