mirror of
https://github.com/actions/typescript-action.git
synced 2025-04-06 23:39:45 +00:00
jest.spyOn GitHub core methods to clean up the test output
This commit is contained in:
@ -24,6 +24,11 @@ const timeRegex = /^\d{2}:\d{2}:\d{2}/
|
||||
describe('action', () => {
|
||||
beforeEach(() => {
|
||||
jest.clearAllMocks()
|
||||
jest.spyOn(core, 'debug').mockImplementation()
|
||||
jest.spyOn(core, 'error').mockImplementation()
|
||||
jest.spyOn(core, 'getInput').mockImplementation()
|
||||
jest.spyOn(core, 'setFailed').mockImplementation()
|
||||
jest.spyOn(core, 'setOutput').mockImplementation()
|
||||
})
|
||||
|
||||
it('sets the time output', async () => {
|
||||
|
Reference in New Issue
Block a user