mirror of
https://github.com/actions/setup-node.git
synced 2025-12-16 01:51:49 +08:00
add support for ghes caching
This commit is contained in:
@@ -28,6 +28,7 @@ describe('run', () => {
|
||||
let getStateSpy: jest.SpyInstance;
|
||||
let saveCacheSpy: jest.SpyInstance;
|
||||
let getCommandOutputSpy: jest.SpyInstance;
|
||||
let isCacheActionAvailable: jest.SpyInstance;
|
||||
let hashFilesSpy: jest.SpyInstance;
|
||||
let existsSpy: jest.SpyInstance;
|
||||
|
||||
@@ -70,6 +71,9 @@ describe('run', () => {
|
||||
|
||||
// utils
|
||||
getCommandOutputSpy = jest.spyOn(utils, 'getCommandOutput');
|
||||
|
||||
isCacheActionAvailable = jest.spyOn(utils, 'isCacheFeatureAvailable');
|
||||
isCacheActionAvailable.mockImplementation(() => true);
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
|
||||
Reference in New Issue
Block a user