diff --git a/pester/configs.Tests.ps1 b/pester/configs.Tests.ps1 index 37dc6381..77504449 100644 --- a/pester/configs.Tests.ps1 +++ b/pester/configs.Tests.ps1 @@ -116,8 +116,9 @@ Describe "Config Files Validation" { $results = $configSchemas.Keys | ForEach-Object -Parallel { $configName = $_ $importedConfigs = $using:global:importedConfigs + $configSchemas = $using:configSchemas $config = $importedConfigs[$configName] - $schema = $using:configSchemas[$configName] + $schema = $configSchemas[$configName] if (-not $config) { return "Config file '$configName' is missing or empty"