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 11import * as core from '@actions/core' ;
22import * as io from '@actions/io' ;
33import * as tc from '@actions/tool-cache' ;
4+ import * as exec from '@actions/exec' ;
45import * as im from '../src/installer' ;
56import * as cache from '@actions/cache' ;
67import fs from 'fs' ;
@@ -38,6 +39,7 @@ describe('setup-node', () => {
3839 let authSpy : jest . SpyInstance ;
3940 let parseNodeVersionSpy : jest . SpyInstance ;
4041 let isCacheActionAvailable : jest . SpyInstance ;
42+ let getExecOutputSpy : jest . SpyInstance ;
4143
4244 beforeEach ( ( ) => {
4345 // @actions /core
@@ -103,6 +105,10 @@ describe('setup-node', () => {
103105 // uncomment to debug
104106 // process.stderr.write('log:' + line + '\n');
105107 } ) ;
108+
109+ // @actions /exec
110+ getExecOutputSpy = jest . spyOn ( exec , 'getExecOutput' ) ;
111+ getExecOutputSpy . mockImplementation ( ( ) => '16.15.0' ) ;
106112 } ) ;
107113
108114 afterEach ( ( ) => {
You can’t perform that action at this time.
0 commit comments