We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e40ee8 commit 30cd52eCopy full SHA for 30cd52e
__tests__/cleanup-java.test.ts
@@ -5,6 +5,7 @@ import * as util from '../src/util';
5
6
describe('cleanup', () => {
7
let spyWarning: jest.SpyInstance<void, Parameters<typeof core.warning>>;
8
+ let spyInfo: jest.SpyInstance<void, Parameters<typeof core.info>>;
9
let spyCacheSave: jest.SpyInstance<
10
ReturnType<typeof cache.saveCache>,
11
Parameters<typeof cache.saveCache>
@@ -13,6 +14,9 @@ describe('cleanup', () => {
13
14
15
beforeEach(() => {
16
spyWarning = jest.spyOn(core, 'warning');
17
+ spyWarning.mockImplementation(() => null);
18
+ spyInfo = jest.spyOn(core, 'info');
19
+ spyInfo.mockImplementation(() => null);
20
spyCacheSave = jest.spyOn(cache, 'saveCache');
21
spyJobStatusSuccess = jest.spyOn(util, 'isJobStatusSuccess');
22
spyJobStatusSuccess.mockReturnValue(true);
0 commit comments