You've already forked setup-python
							
							
				mirror of
				https://github.com/actions/setup-python.git
				synced 2025-10-31 23:26:24 +07:00 
			
		
		
		
	Fix tests for update-environment==false
This commit is contained in:
		| @ -151,8 +151,11 @@ describe('findPyPyVersion', () => { | ||||
|   let spyChmodSync: jest.SpyInstance; | ||||
|   let spyCoreAddPath: jest.SpyInstance; | ||||
|   let spyCoreExportVariable: jest.SpyInstance; | ||||
|   const env = process.env; | ||||
|  | ||||
|   beforeEach(() => { | ||||
|     jest.resetModules(); | ||||
|     process.env = {...env}; | ||||
|     tcFind = jest.spyOn(tc, 'find'); | ||||
|     tcFind.mockImplementation((tool: string, version: string) => { | ||||
|       const semverRange = new semver.Range(version); | ||||
| @ -214,6 +217,7 @@ describe('findPyPyVersion', () => { | ||||
|     jest.resetAllMocks(); | ||||
|     jest.clearAllMocks(); | ||||
|     jest.restoreAllMocks(); | ||||
|     process.env = env; | ||||
|   }); | ||||
|  | ||||
|   it('found PyPy in toolcache', async () => { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 mayeut
					mayeut