@@ -22,8 +22,9 @@ describe('Invalid Usage', () => {
2222 } )
2323
2424 it ( 'Fails on invalid action input' , async ( ) => {
25+ jest . spyOn ( core , 'error' ) . mockImplementation ( )
2526 jest . spyOn ( core , 'getInput' ) . mockImplementation ( addLabelInvalidInput )
26- jest . spyOn ( core , 'setFailed' )
27+ jest . spyOn ( core , 'setFailed' ) . mockImplementation ( )
2728
2829 const { run } = require ( '../src/index' )
2930 await run ( )
@@ -64,8 +65,8 @@ describe('Add Labels', () => {
6465
6566 it ( 'Fails on GitHub API error' , async ( ) => {
6667 jest . spyOn ( core , 'getInput' ) . mockImplementation ( addLabelValidInput )
67- jest . spyOn ( core , 'error' )
68- jest . spyOn ( core , 'setFailed' )
68+ jest . spyOn ( core , 'error' ) . mockImplementation ( )
69+ jest . spyOn ( core , 'setFailed' ) . mockImplementation ( )
6970
7071 jest . spyOn ( require ( '@octokit/rest' ) , 'Octokit' ) . mockImplementation ( ( ) => {
7172 return {
@@ -95,7 +96,7 @@ describe('Add Labels', () => {
9596
9697 it ( 'Creates missing labels on 404 errors' , async ( ) => {
9798 jest . spyOn ( core , 'getInput' ) . mockImplementation ( addLabelValidInput )
98- jest . spyOn ( core , 'info' )
99+ jest . spyOn ( core , 'info' ) . mockImplementation ( )
99100 jest . spyOn ( Math , 'random' ) . mockReturnValue ( 0.5 )
100101
101102 const mocktokit = {
@@ -154,7 +155,7 @@ describe('Remove Labels', () => {
154155
155156 it ( 'Removes valid labels' , async ( ) => {
156157 jest . spyOn ( core , 'getInput' ) . mockImplementation ( removeLabelValidInput )
157- jest . spyOn ( core , 'info' )
158+ jest . spyOn ( core , 'info' ) . mockImplementation ( )
158159
159160 const mocktokit = {
160161 rest : {
@@ -190,7 +191,7 @@ describe('Remove Labels', () => {
190191
191192 it ( 'Skips removing missing labels' , async ( ) => {
192193 jest . spyOn ( core , 'getInput' ) . mockImplementation ( removeLabelValidInput )
193- jest . spyOn ( core , 'setFailed' )
194+ jest . spyOn ( core , 'setFailed' ) . mockImplementation ( )
194195
195196 const mocktokit = {
196197 rest : {
@@ -221,7 +222,7 @@ describe('Remove Labels', () => {
221222
222223 it ( 'Fails on GitHub API error' , async ( ) => {
223224 jest . spyOn ( core , 'getInput' ) . mockImplementation ( removeLabelValidInput )
224- jest . spyOn ( core , 'setFailed' )
225+ jest . spyOn ( core , 'setFailed' ) . mockImplementation ( )
225226
226227 const mocktokit = {
227228 rest : {
0 commit comments