We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0453e51 commit e93556cCopy full SHA for e93556c
__tests__/cache-save.test.ts
@@ -1,6 +1,7 @@
1
import * as core from '@actions/core';
2
import * as cache from '@actions/cache';
3
import * as glob from '@actions/glob';
4
+import fs from 'fs';
5
import path from 'path';
6
7
import * as utils from '../src/cache-utils';
@@ -28,6 +29,7 @@ describe('run', () => {
28
29
let saveCacheSpy: jest.SpyInstance;
30
let getCommandOutputSpy: jest.SpyInstance;
31
let hashFilesSpy: jest.SpyInstance;
32
+ let existsSpy: jest.SpyInstance;
33
34
beforeEach(() => {
35
getInputSpy = jest.spyOn(core, 'getInput');
@@ -63,6 +65,9 @@ describe('run', () => {
63
65
}
64
66
});
67
68
+ existsSpy = jest.spyOn(fs, 'existsSync');
69
+ existsSpy.mockImplementation(() => true);
70
+
71
// utils
72
getCommandOutputSpy = jest.spyOn(utils, 'getCommandOutput');
73
0 commit comments