This commit is contained in:
Adam 2022-10-07 21:00:37 +02:00
parent d1f29d3cd9
commit b1ef2feb1b

View File

@ -402,6 +402,12 @@ describe('setup-node', () => {
expect(execSpy).toHaveBeenCalledWith('corepack', ['enable']);
});
it('enables corepack with arguments if they are passed', async () => {
inputs['corepack'] = 'npm';
await main.run();
expect(execSpy).toHaveBeenCalledWith('corepack', ['enable', 'npm']);
});
describe('check-latest flag', () => {
it('use local version and dont check manifest if check-latest is not specified', async () => {
os.platform = 'linux';