File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -604,7 +604,7 @@ Describe "-ReportSummary switch" {
604604 }
605605
606606 It " prints the correct report summary using the -NoReportSummary switch" {
607- $result = & $pwshExe - Command " Import-Module '$pssaPath '; Invoke-ScriptAnalyzer -ScriptDefinition gci -ReportSummary"
607+ $result = & $pwshExe - NoProfile - Command " Import-Module '$pssaPath '; Invoke-ScriptAnalyzer -ScriptDefinition gci -ReportSummary"
608608
609609 " $result " | Should - BeLike $reportSummaryFor1Warning
610610 }
Original file line number Diff line number Diff line change @@ -351,7 +351,7 @@ function Test-ScriptAnalyzer
351351 }
352352 else {
353353 $powershell = (Get-Process - id $PID ).MainModule.FileName
354- & ${powershell} - Command $scriptBlock
354+ & ${powershell} - NoProfile - Command $scriptBlock
355355 }
356356 }
357357 finally {
You can’t perform that action at this time.
0 commit comments