From 77bdc8bc0ef606ae1c6cc9565b3f594d925d3b35 Mon Sep 17 00:00:00 2001 From: amart241 Date: Thu, 30 Jan 2025 10:04:33 -0700 Subject: [PATCH] fixed global issue where ConvertFrom-Yaml is defined --- .../PowerShell/ScubaConfig/ScubaConfigLoadConfig.Tests.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PowerShell/ScubaGear/Testing/Unit/PowerShell/ScubaConfig/ScubaConfigLoadConfig.Tests.ps1 b/PowerShell/ScubaGear/Testing/Unit/PowerShell/ScubaConfig/ScubaConfigLoadConfig.Tests.ps1 index 6f37e39a9f..51dcff06a7 100644 --- a/PowerShell/ScubaGear/Testing/Unit/PowerShell/ScubaConfig/ScubaConfigLoadConfig.Tests.ps1 +++ b/PowerShell/ScubaGear/Testing/Unit/PowerShell/ScubaConfig/ScubaConfigLoadConfig.Tests.ps1 @@ -76,6 +76,9 @@ InModuleScope ScubaConfig { [ScubaConfig]::GetInstance().LoadConfig($PSCommandPath) | Should -BeTrue Should -Invoke -CommandName Write-Warning -Exactly -Times 1 } + AfterAll { + Remove-Item function:\ConvertFrom-Yaml + } } } }