Skip to content

Commit

Permalink
Unmock fs.existsSync after tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed Jul 15, 2021
1 parent e93556c commit f452812
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit f452812

Please sign in to comment.