mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-30 17:25:51 +08:00 
			
		
		
		
	[Tests] Run fast test suite in clean environment
This commit is contained in:
		
				
					committed by
					
						 Jordan Harband
						Jordan Harband
					
				
			
			
				
	
			
			
			
						parent
						
							11a9d22607
						
					
				
				
					commit
					00af6341f7
				
			| @@ -27,7 +27,9 @@ EXPECTED_OUTPUT="$(nvm_add_iojs_prefix ${VERSION})" | ||||
|  | ||||
| nvm use --delete-prefix iojs || die '`nvm use iojs` failed' | ||||
|  | ||||
| CURRENT="$(nvm current)" | ||||
| # Remove node_modules/.bin from the path so that the system version `which` is | ||||
| # used in nvm_ls_current | ||||
| PATH=$(echo "$PATH" | tr ":" "\n" | grep -v "node_modules/.bin" | tr "\n" ":") CURRENT="$(nvm current)" | ||||
| echo "current: ${CURRENT}" | ||||
|  | ||||
| [ "${CURRENT}" = "${IOJS_VERSION}" ] || die "expected >${IOJS_VERSION}<; got >${CURRENT}<" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user