Print node, npm and yarn versions after installation (#368)

This commit is contained in:
Uladzimir Havenchyk 2022-10-03 17:02:04 +03:00 committed by GitHub
parent c96ab56c5b
commit c81d8ad96d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 1020 additions and 953 deletions

View file

@ -249,6 +249,21 @@ describe('setup-node', () => {
let expPath = path.join(toolPath, 'bin');
expect(getExecOutputSpy).toHaveBeenCalledWith(
'node',
['--version'],
expect.anything()
);
expect(getExecOutputSpy).toHaveBeenCalledWith(
'npm',
['--version'],
expect.anything()
);
expect(getExecOutputSpy).toHaveBeenCalledWith(
'yarn',
['--version'],
expect.anything()
);
expect(dlSpy).toHaveBeenCalled();
expect(exSpy).toHaveBeenCalled();
expect(logSpy).toHaveBeenCalledWith(