Skip to content
Prev Previous commit
Next Next commit
Unmock fs.existsSync after tests
  • Loading branch information
jacobwgillespie committed Jul 15, 2021
commit f452812b440ff2d1b0ee9d300a037464407004e5
4 changes: 4 additions & 0 deletions __tests__/cache-save.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ describe('run', () => {
getCommandOutputSpy = jest.spyOn(utils, 'getCommandOutput');
});

afterEach(() => {
existsSpy.mockRestore();
});

describe('Package manager validation', () => {
it('Package manager is not provided, skip caching', async () => {
inputs['cache'] = '';
Expand Down