Address copilot comments second

This commit is contained in:
Justin Chung
2026-05-27 12:42:51 -05:00
parent 5ff044a4b6
commit 5252a123b4
9 changed files with 71 additions and 73 deletions
@@ -3,26 +3,6 @@
Import-Module HelpersCommon
function Test-CanWriteToSystemConfigDir {
$dir = Split-Path (Get-PowerShellConfiguration -Scope AllUsers).Path
if (!(Test-Path $dir)) {
try {
$null = New-Item -ItemType Directory -Path $dir -Force -ErrorAction Stop
return $true
} catch {
return $false
}
}
try {
$testFile = Join-Path $dir ".pester-write-test"
Set-Content -Path $testFile -Value '' -ErrorAction Stop
Remove-Item $testFile -Force -ErrorAction SilentlyContinue
return $true
} catch {
return $false
}
}
Describe "Enable-ExperimentalFeature and Disable-ExperimentalFeature tests" -tags "Feature","RequireAdminOnWindows" {
BeforeAll {
@@ -3,26 +3,6 @@
Import-Module HelpersCommon
function Test-CanWriteToSystemConfigDir {
$dir = Split-Path (Get-PowerShellConfiguration -Scope AllUsers).Path
if (!(Test-Path $dir)) {
try {
$null = New-Item -ItemType Directory -Path $dir -Force -ErrorAction Stop
return $true
} catch {
return $false
}
}
try {
$testFile = Join-Path $dir ".pester-write-test"
Set-Content -Path $testFile -Value '' -ErrorAction Stop
Remove-Item $testFile -Force -ErrorAction SilentlyContinue
return $true
} catch {
return $false
}
}
Describe "Get-ExperimentalFeature Tests" -tags "Feature","RequireAdminOnWindows" {
BeforeAll {