mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 13:29:12 +08:00 
			
		
		
		
	Add 'cache-hit' as output
This commit is contained in:
		@@ -140,6 +140,7 @@ describe('cache-restore', () => {
 | 
			
		||||
        expect(infoSpy).not.toHaveBeenCalledWith(
 | 
			
		||||
          `${packageManager} cache is not found`
 | 
			
		||||
        );
 | 
			
		||||
        expect(setOutputSpy).toHaveBeenCalledWith('cache-hit', true);
 | 
			
		||||
      }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
@@ -167,6 +168,7 @@ describe('cache-restore', () => {
 | 
			
		||||
        expect(infoSpy).toHaveBeenCalledWith(
 | 
			
		||||
          `${packageManager} cache is not found`
 | 
			
		||||
        );
 | 
			
		||||
        expect(setOutputSpy).toHaveBeenCalledWith('cache-hit', false);
 | 
			
		||||
      }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user