@@ -175,7 +175,8 @@ function Setup-Web-NodeJS {
175175 try {
176176 Log- Line " ⚙️ Running 'npm install'" $NOW_RUN_LOG_FILE
177177 Log- Line " ℹ️ Installing dependencies" $NOW_RUN_LOG_FILE
178- [void ](Invoke-External - Exe " cmd.exe" - Arguments @ (" /c" , " npm" , " install" ) - LogFile $LogFile - WorkingDirectory $TARGET )
178+ # [void](Invoke-External -Exe "cmd.exe" -Arguments @("/c","npm","install") -LogFile $LogFile -WorkingDirectory $TARGET)
179+ & npm install
179180 Log- Line " ✅ Dependencies installed" $NOW_RUN_LOG_FILE
180181
181182 $caps = Generate- Web- Platforms - max_total_parallels $TEAM_PARALLELS_MAX_ALLOWED_WEB - platformsListContentFormat " json"
@@ -207,7 +208,8 @@ function Setup-Web-NodeJS {
207208 Log- Line " $caps " $NOW_RUN_LOG_FILE
208209
209210 Print- TestsRunningSection - Command " npm run test"
210- [void ](Invoke-External - Exe " cmd.exe" - Arguments @ (" /c" , " npm" , " run" , " test" ) - LogFile $LogFile - WorkingDirectory $TARGET )
211+ & npm run test
212+ # [void](Invoke-External -Exe "cmd.exe" -Arguments @("/c","npm","run","test") -LogFile $LogFile -WorkingDirectory $TARGET)
211213 Log- Line " ℹ️ Run Test command completed." $NOW_RUN_LOG_FILE
212214
213215 } finally {
@@ -399,7 +401,8 @@ function Setup-Mobile-NodeJS {
399401 try {
400402 Log- Line " ⚙️ Running 'npm install'" $NOW_RUN_LOG_FILE
401403 Log- Line " ℹ️ Installing dependencies" $NOW_RUN_LOG_FILE
402- [void ](Invoke-External - Exe " cmd.exe" - Arguments @ (" /c" , " npm" , " install" ) - LogFile $LogFile - WorkingDirectory $testDir )
404+ & npm install
405+ # [void](Invoke-External -Exe "cmd.exe" -Arguments @("/c","npm","install") -LogFile $LogFile -WorkingDirectory $testDir)
403406 Log- Line " ✅ Dependencies installed" $NOW_RUN_LOG_FILE
404407
405408 # Generate capabilities JSON and set as environment variable (like Mac)
@@ -426,7 +429,8 @@ function Setup-Mobile-NodeJS {
426429 Log- Line " ℹ️ Platforms: $capsJson " $NOW_RUN_LOG_FILE
427430
428431 Print- TestsRunningSection - Command " npm run test"
429- [void ](Invoke-External - Exe " cmd.exe" - Arguments @ (" /c" , " npm" , " run" , " test" ) - LogFile $LogFile - WorkingDirectory $testDir )
432+ & npm run test
433+ # [void](Invoke-External -Exe "cmd.exe" -Arguments @("/c","npm","run","test") -LogFile $LogFile -WorkingDirectory $testDir)
430434 Log- Line " ℹ️ Run Test command completed." $NOW_RUN_LOG_FILE
431435
432436 } finally {
0 commit comments