@@ -14,6 +14,8 @@ describe('dependency cache', () => {
1414 let workspace : string ;
1515 let spyInfo : jest . SpyInstance < void , Parameters < typeof core . info > > ;
1616 let spyWarning : jest . SpyInstance < void , Parameters < typeof core . warning > > ;
17+ let spyDebug : jest . SpyInstance < void , Parameters < typeof core . debug > > ;
18+ let spySaveState : jest . SpyInstance < void , Parameters < typeof core . saveState > > ;
1719
1820 beforeEach ( ( ) => {
1921 workspace = mkdtempSync ( join ( tmpdir ( ) , 'setup-java-cache-' ) ) ;
@@ -38,7 +40,16 @@ describe('dependency cache', () => {
3840
3941 beforeEach ( ( ) => {
4042 spyInfo = jest . spyOn ( core , 'info' ) ;
43+ spyInfo . mockImplementation ( ( ) => null ) ;
44+
4145 spyWarning = jest . spyOn ( core , 'warning' ) ;
46+ spyWarning . mockImplementation ( ( ) => null ) ;
47+
48+ spyDebug = jest . spyOn ( core , 'debug' ) ;
49+ spyDebug . mockImplementation ( ( ) => null ) ;
50+
51+ spySaveState = jest . spyOn ( core , 'saveState' ) ;
52+ spySaveState . mockImplementation ( ( ) => null ) ;
4253 } ) ;
4354
4455 afterEach ( ( ) => {
@@ -58,6 +69,7 @@ describe('dependency cache', () => {
5869 spyCacheRestore = jest
5970 . spyOn ( cache , 'restoreCache' )
6071 . mockImplementation ( ( paths : string [ ] , primaryKey : string ) => Promise . resolve ( undefined ) ) ;
72+ spyWarning . mockImplementation ( ( ) => null ) ;
6173 } ) ;
6274
6375 it ( 'throws error if unsupported package manager specified' , ( ) => {
@@ -117,6 +129,7 @@ describe('dependency cache', () => {
117129 spyCacheSave = jest
118130 . spyOn ( cache , 'saveCache' )
119131 . mockImplementation ( ( paths : string [ ] , key : string ) => Promise . resolve ( 0 ) ) ;
132+ spyWarning . mockImplementation ( ( ) => null ) ;
120133 } ) ;
121134
122135 it ( 'throws error if unsupported package manager specified' , ( ) => {
0 commit comments