AL/Remove-ALTestDependencies.ps1
function Remove-ALTestDependencies { Param( [Parameter(Mandatory=$false)] [string] $sourcePath = (Get-Location) ) $testapps = Get-EnvironmentKeyValue -SourcePath $sourcePath -KeyName "testapps" $dependencies = Get-AppKeyValue -SourcePath $sourcePath -KeyName "dependencies" try { $dependencies = $dependencies | Where-Object {$testapps.appId -notcontains $_.appId} Set-AppKeyValue -SourcePath $sourcePath -KeyName "dependencies" -KeyValue $dependencies } catch { throw "Could not remove test dependencies" } } Export-ModuleMember Remove-ALTestDependencies |