Skip to content

Commit ee38b18

Browse files
committed
fix: drop exec mock from tests
Signed-off-by: Sam Gammon <[email protected]>
1 parent 71e3fa5 commit ee38b18

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

__tests__/utils.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import path from 'node:path'
22
import fs from 'node:fs'
33
import * as core from '@actions/core'
4-
import * as exec from '@actions/exec'
4+
// import * as exec from '@actions/exec'
55
import * as github from '@actions/github'
66
import { opendir, access } from 'node:fs/promises'
77
import { setBinpath } from '../src/command'
@@ -82,7 +82,7 @@ export function setupCoreMocks(): {
8282
setOutputMock: jest.SpyInstance
8383
getJsonMock: jest.SpyInstance
8484
getOctokitMock: jest.SpyInstance
85-
execMock: jest.SpyInstance
85+
// execMock: jest.SpyInstance
8686
clearMocks: () => void
8787
setupMocks: () => void
8888
resetState: () => void
@@ -92,7 +92,7 @@ export function setupCoreMocks(): {
9292
let getInputMock: jest.SpyInstance = jest.spyOn(core, 'getInput')
9393
let setFailedMock: jest.SpyInstance = jest.spyOn(core, 'setFailed')
9494
let setOutputMock: jest.SpyInstance = jest.spyOn(core, 'setOutput')
95-
let execMock: jest.SpyInstance = jest.spyOn(exec, 'exec')
95+
// let execMock: jest.SpyInstance = jest.spyOn(exec, 'exec')
9696
let getOctokitMock: jest.SpyInstance = jest
9797
.spyOn(github, 'getOctokit')
9898
.mockImplementation()
@@ -108,15 +108,15 @@ export function setupCoreMocks(): {
108108
setOutputMock,
109109
getJsonMock,
110110
getOctokitMock,
111-
execMock,
111+
// execMock,
112112
resetState: () => {
113113
resetState()
114114
},
115115
clearMocks: () => {
116116
// Nothing at this time.
117117
},
118118
setupMocks: () => {
119-
execMock = jest.spyOn(exec, 'exec').mockImplementation()
119+
// execMock = jest.spyOn(exec, 'exec').mockImplementation()
120120
debugMock = jest.spyOn(core, 'debug').mockImplementation()
121121
errorMock = jest.spyOn(core, 'error').mockImplementation()
122122
getInputMock = jest.spyOn(core, 'getInput').mockImplementation()

0 commit comments

Comments
 (0)