some test updates

This commit is contained in:
Rob Herley
2023-12-01 00:31:27 +00:00
committed by GitHub
parent e9d6649a14
commit 22b7aeb707
10 changed files with 237 additions and 237 deletions

View File

@@ -0,0 +1,9 @@
import * as core from '@actions/core'
// noopLogs mocks the console.log and core.* functions to prevent output in the console while testing
export const noopLogs = (): void => {
// jest.spyOn(console, 'log').mockImplementation(() => {})
jest.spyOn(core, 'debug').mockImplementation(() => {})
jest.spyOn(core, 'info').mockImplementation(() => {})
jest.spyOn(core, 'warning').mockImplementation(() => {})
}