Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pnpm caching support #278

Merged
merged 12 commits into from
Jul 20, 2021
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