diff --git a/test/utils/console.js b/test/utils/mock-log.js similarity index 88% rename from test/utils/console.js rename to test/utils/mock-log.js index e3a89bc164..a798dbb55e 100644 --- a/test/utils/console.js +++ b/test/utils/mock-log.js @@ -5,7 +5,7 @@ export default function mockLog(levels = 'all', logger = console) { } beforeAll(() => { for (let level of levels) { - logger[level] = jest.fn() + jest.spyOn(logger, level).mockImplementation(()=>{}) } }) beforeEach(() => {