File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1
1
import * as core from '@actions/core' ;
2
2
import * as io from '@actions/io' ;
3
3
import * as tc from '@actions/tool-cache' ;
4
+ import * as exec from '@actions/exec' ;
4
5
import * as im from '../src/installer' ;
5
6
import * as cache from '@actions/cache' ;
6
7
import fs from 'fs' ;
@@ -38,6 +39,7 @@ describe('setup-node', () => {
38
39
let authSpy : jest . SpyInstance ;
39
40
let parseNodeVersionSpy : jest . SpyInstance ;
40
41
let isCacheActionAvailable : jest . SpyInstance ;
42
+ let getExecOutputSpy : jest . SpyInstance ;
41
43
42
44
beforeEach ( ( ) => {
43
45
// @actions /core
@@ -103,6 +105,10 @@ describe('setup-node', () => {
103
105
// uncomment to debug
104
106
// process.stderr.write('log:' + line + '\n');
105
107
} ) ;
108
+
109
+ // @actions /exec
110
+ getExecOutputSpy = jest . spyOn ( exec , 'getExecOutput' ) ;
111
+ getExecOutputSpy . mockImplementation ( ( ) => '16.15.0' ) ;
106
112
} ) ;
107
113
108
114
afterEach ( ( ) => {
You can’t perform that action at this time.
0 commit comments