We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bce77d commit 79c94b1Copy full SHA for 79c94b1
test/DscResource/PSResourceGetDSCResource.Tests.ps1
@@ -18,8 +18,8 @@ function SetupDsc {
18
19
$script:dscExe = Get-Command -name dsc -CommandType Application | Select-Object -First 1
20
21
- $loadedPSResourceGet = Get-Module PSResourceGet -ErrorAction SilentlyContinue
22
- $resources = Get-ChildItem $loadedPSResourceGet.ModuleBase/*resource.json -ErrorAction SilentlyContinue
+ $expectedModulePath = Join-Path $env:BUILD_SOURCESDIRECTORY 'out'
+ $resources = Get-ChildItem $expectedModulePath/*resource.json -ErrorAction SilentlyContinue
23
24
if (-not $script:dscExe) {
25
throw "Could not find dsc executable in PATH after setup."
0 commit comments