mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 05:19:11 +08:00 
			
		
		
		
	Print node, npm and yarn versions after installation (#368)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							c96ab56c5b
						
					
				
				
					commit
					c81d8ad96d
				
			@@ -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(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user