Unmock fs.existsSync after tests

This commit is contained in:
Jacob Gillespie 2021-07-15 12:40:08 +01:00
parent e93556ca66
commit f452812b44
No known key found for this signature in database
GPG key ID: 52D71192EF3DBDD9

View file

@ -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'] = '';