Skip to content

Commit

Permalink
Print node, npm and yarn versions after installation (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
havenchyk authored Oct 3, 2022
1 parent c96ab56 commit c81d8ad
Show file tree
Hide file tree
Showing 4 changed files with 1,020 additions and 953 deletions.
15 changes: 15 additions & 0 deletions __tests__/installer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Loading

0 comments on commit c81d8ad

Please sign in to comment.