Mock all output methods from core

This commit is contained in:
Webber 2020-05-01 15:51:41 +02:00 committed by Webber Takken
parent e46399169f
commit c146049b33

View File

@ -1,7 +1,10 @@
import * as core from '@actions/core'; import * as core from '@actions/core';
import System from './system'; import System from './system';
jest.spyOn(core, 'debug').mockImplementation(() => {});
const info = jest.spyOn(core, 'info').mockImplementation(() => {}); const info = jest.spyOn(core, 'info').mockImplementation(() => {});
jest.spyOn(core, 'warning').mockImplementation(() => {});
jest.spyOn(core, 'error').mockImplementation(() => {});
afterEach(() => { afterEach(() => {
jest.clearAllMocks(); jest.clearAllMocks();