Mock all output methods from core
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user