1
0
Fork 0
mirror of https://github.com/actions/setup-node synced 2024-12-23 05:34:56 +00:00

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