From c146049b335e223d67c9e854185bdcd021ad4dec Mon Sep 17 00:00:00 2001 From: Webber Date: Fri, 1 May 2020 15:51:41 +0200 Subject: [PATCH] Mock all output methods from core --- src/model/system.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/model/system.test.js b/src/model/system.test.js index 9bb672a7..97c048b3 100644 --- a/src/model/system.test.js +++ b/src/model/system.test.js @@ -1,7 +1,10 @@ import * as core from '@actions/core'; import System from './system'; +jest.spyOn(core, 'debug').mockImplementation(() => {}); const info = jest.spyOn(core, 'info').mockImplementation(() => {}); +jest.spyOn(core, 'warning').mockImplementation(() => {}); +jest.spyOn(core, 'error').mockImplementation(() => {}); afterEach(() => { jest.clearAllMocks();