mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
Mock all output methods from core
This commit is contained in:
parent
e46399169f
commit
c146049b33
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user