update download-artifact tests for public and internal impl

This commit is contained in:
Rob Herley authored and GitHub committed 2023-12-01 01:32:45 +00:00
1 parent c6e89b42bc
commit 22d9c85575
6 files changed
+224 -53

No files matched your search

+9
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(() => {})
}