From 1470ff203a53d9f9b20f916424c4c038ea577009 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Tue, 23 Feb 2021 15:58:54 -0700 Subject: [PATCH] refactor: dont use actual logger in helper --- test/helpers.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/helpers.ts b/test/helpers.ts index 193fd0cad..2aeb82df6 100644 --- a/test/helpers.ts +++ b/test/helpers.ts @@ -33,3 +33,15 @@ export function createCookieIfDoesntExist(cookies: Array, cookieToStore: } return cookies } + +export const loggerModule = { + field: jest.fn(), + level: 2, + logger: { + debug: jest.fn(), + error: jest.fn(), + info: jest.fn(), + trace: jest.fn(), + warn: jest.fn(), + }, +}