fix: add found cached toolpath to PATH before executing node

This commit is contained in:
Ben Sterling 2022-07-20 11:17:46 +01:00
parent df568f01a8
commit c4d0bc7f39
No known key found for this signature in database
GPG key ID: 4A6610DCFFC78977
2 changed files with 13 additions and 6 deletions

View file

@ -225,7 +225,7 @@ describe('setup-node', () => {
await main.run();
expect(logSpy).toHaveBeenCalledWith(
`Found v14.0.0 in cache @ ${toolPath} but it does not satisfy the requested version (12.16.2)`
`Found v14.0.0 in cache @ ${expPath} but it does not satisfy the requested version (12.16.2)`
);
expect(logSpy).toHaveBeenCalledWith(
`Attempting to download ${versionSpec}...`