File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 11import * as core from '@actions/core' ;
22import * as cache from '@actions/cache' ;
33import * as glob from '@actions/glob' ;
4+ import fs from 'fs' ;
45import path from 'path' ;
56
67import * as utils from '../src/cache-utils' ;
@@ -28,6 +29,7 @@ describe('run', () => {
2829 let saveCacheSpy : jest . SpyInstance ;
2930 let getCommandOutputSpy : jest . SpyInstance ;
3031 let hashFilesSpy : jest . SpyInstance ;
32+ let existsSpy : jest . SpyInstance ;
3133
3234 beforeEach ( ( ) => {
3335 getInputSpy = jest . spyOn ( core , 'getInput' ) ;
@@ -63,6 +65,9 @@ describe('run', () => {
6365 }
6466 } ) ;
6567
68+ existsSpy = jest . spyOn ( fs , 'existsSync' ) ;
69+ existsSpy . mockImplementation ( ( ) => true ) ;
70+
6671 // utils
6772 getCommandOutputSpy = jest . spyOn ( utils , 'getCommandOutput' ) ;
6873 } ) ;
You can’t perform that action at this time.
0 commit comments