1
1
import path from 'node:path'
2
2
import fs from 'node:fs'
3
3
import * as core from '@actions/core'
4
- import * as exec from '@actions/exec'
4
+ // import * as exec from '@actions/exec'
5
5
import * as github from '@actions/github'
6
6
import { opendir , access } from 'node:fs/promises'
7
7
import { setBinpath } from '../src/command'
@@ -82,7 +82,7 @@ export function setupCoreMocks(): {
82
82
setOutputMock : jest . SpyInstance
83
83
getJsonMock : jest . SpyInstance
84
84
getOctokitMock : jest . SpyInstance
85
- execMock : jest . SpyInstance
85
+ // execMock: jest.SpyInstance
86
86
clearMocks : ( ) => void
87
87
setupMocks : ( ) => void
88
88
resetState : ( ) => void
@@ -92,7 +92,7 @@ export function setupCoreMocks(): {
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
- let execMock : jest . SpyInstance = jest . spyOn ( exec , 'exec' )
95
+ // let execMock: jest.SpyInstance = jest.spyOn(exec, 'exec')
96
96
let getOctokitMock : jest . SpyInstance = jest
97
97
. spyOn ( github , 'getOctokit' )
98
98
. mockImplementation ( )
@@ -108,15 +108,15 @@ export function setupCoreMocks(): {
108
108
setOutputMock,
109
109
getJsonMock,
110
110
getOctokitMock,
111
- execMock,
111
+ // execMock,
112
112
resetState : ( ) => {
113
113
resetState ( )
114
114
} ,
115
115
clearMocks : ( ) => {
116
116
// Nothing at this time.
117
117
} ,
118
118
setupMocks : ( ) => {
119
- execMock = jest . spyOn ( exec , 'exec' ) . mockImplementation ( )
119
+ // execMock = jest.spyOn(exec, 'exec').mockImplementation()
120
120
debugMock = jest . spyOn ( core , 'debug' ) . mockImplementation ( )
121
121
errorMock = jest . spyOn ( core , 'error' ) . mockImplementation ( )
122
122
getInputMock = jest . spyOn ( core , 'getInput' ) . mockImplementation ( )
0 commit comments