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

Lines changed: 15 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy