Skip to content

Commit aaa2e3b

Browse files
🩹 [Patch]: Set PSStyle.OutputRendering to 'Host' for improved output formatting in PSScriptAnalyzer tests
1 parent fdbc52e commit aaa2e3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎scripts/tests/PSScriptAnalyzer/PSScriptAnalyzer.Tests.ps1‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ BeforeDiscovery {
6565

6666
Describe 'PSScriptAnalyzer' {
6767
BeforeAll {
68+
$PSStyle.OutputRendering = 'Host'
6869
$relativeSettingsFilePath = if ($SettingsFilePath.StartsWith($PSScriptRoot)) {
6970
$SettingsFilePath.Replace($PSScriptRoot, 'Action:').Trim('\').Trim('/')
7071
} elseif ($SettingsFilePath.StartsWith($env:GITHUB_WORKSPACE)) {

0 commit comments

Comments
 (0)