Skip to content

Commit c81d8ad

Browse files
authored
Print node, npm and yarn versions after installation (#368)
1 parent c96ab56 commit c81d8ad

File tree

4 files changed

+1020
-953
lines changed

4 files changed

+1020
-953
lines changed

__tests__/installer.test.ts

+15
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,21 @@ describe('setup-node', () => {
249249

250250
let expPath = path.join(toolPath, 'bin');
251251

252+
expect(getExecOutputSpy).toHaveBeenCalledWith(
253+
'node',
254+
['--version'],
255+
expect.anything()
256+
);
257+
expect(getExecOutputSpy).toHaveBeenCalledWith(
258+
'npm',
259+
['--version'],
260+
expect.anything()
261+
);
262+
expect(getExecOutputSpy).toHaveBeenCalledWith(
263+
'yarn',
264+
['--version'],
265+
expect.anything()
266+
);
252267
expect(dlSpy).toHaveBeenCalled();
253268
expect(exSpy).toHaveBeenCalled();
254269
expect(logSpy).toHaveBeenCalledWith(

0 commit comments

Comments
 (0)