@@ -75,26 +75,30 @@ export function resetState() {
75
75
}
76
76
77
77
export function setupCoreMocks ( ) : {
78
- debugMock : jest . SpyInstance ,
79
- errorMock : jest . SpyInstance ,
80
- getInputMock : jest . SpyInstance ,
81
- setFailedMock : jest . SpyInstance ,
82
- setOutputMock : jest . SpyInstance ,
83
- getJsonMock : jest . SpyInstance ,
84
- getOctokitMock : jest . SpyInstance ,
85
- execMock : jest . SpyInstance ,
86
- clearMocks : ( ) => void ,
87
- setupMocks : ( ) => void ,
88
- resetState : ( ) => void ,
78
+ debugMock : jest . SpyInstance
79
+ errorMock : jest . SpyInstance
80
+ getInputMock : jest . SpyInstance
81
+ setFailedMock : jest . SpyInstance
82
+ setOutputMock : jest . SpyInstance
83
+ getJsonMock : jest . SpyInstance
84
+ getOctokitMock : jest . SpyInstance
85
+ execMock : jest . SpyInstance
86
+ clearMocks : ( ) => void
87
+ setupMocks : ( ) => void
88
+ resetState : ( ) => void
89
89
} {
90
90
let debugMock : jest . SpyInstance = jest . spyOn ( core , 'debug' )
91
91
let errorMock : jest . SpyInstance = jest . spyOn ( core , 'error' )
92
92
let getInputMock : jest . SpyInstance = jest . spyOn ( core , 'getInput' )
93
93
let setFailedMock : jest . SpyInstance = jest . spyOn ( core , 'setFailed' )
94
94
let setOutputMock : jest . SpyInstance = jest . spyOn ( core , 'setOutput' )
95
95
let execMock : jest . SpyInstance = jest . spyOn ( exec , 'exec' )
96
- let getOctokitMock : jest . SpyInstance = jest . spyOn ( github , 'getOctokit' ) . mockImplementation ( )
97
- let getJsonMock : jest . SpyInstance = jest . spyOn ( httpClient , 'getJson' ) . mockImplementation ( )
96
+ let getOctokitMock : jest . SpyInstance = jest
97
+ . spyOn ( github , 'getOctokit' )
98
+ . mockImplementation ( )
99
+ let getJsonMock : jest . SpyInstance = jest
100
+ . spyOn ( httpClient , 'getJson' )
101
+ . mockImplementation ( )
98
102
99
103
return {
100
104
debugMock,
@@ -118,6 +122,6 @@ export function setupCoreMocks(): {
118
122
getInputMock = jest . spyOn ( core , 'getInput' ) . mockImplementation ( )
119
123
setFailedMock = jest . spyOn ( core , 'setFailed' ) . mockImplementation ( )
120
124
setOutputMock = jest . spyOn ( core , 'setOutput' ) . mockImplementation ( )
121
- } ,
125
+ }
122
126
}
123
127
}
0 commit comments