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
1 changed files with 4 additions and 0 deletions

View File

@ -72,6 +72,10 @@ describe('run', () => {
getCommandOutputSpy = jest.spyOn(utils, 'getCommandOutput'); getCommandOutputSpy = jest.spyOn(utils, 'getCommandOutput');
}); });
afterEach(() => {
existsSpy.mockRestore();
});
describe('Package manager validation', () => { describe('Package manager validation', () => {
it('Package manager is not provided, skip caching', async () => { it('Package manager is not provided, skip caching', async () => {
inputs['cache'] = ''; inputs['cache'] = '';