Skip to content

Commit 3cb5008

Browse files
Add recurse to find the installed resource
1 parent 79c94b1 commit 3cb5008

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/DscResource/PSResourceGetDSCResource.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function SetupDsc {
1919
$script:dscExe = Get-Command -name dsc -CommandType Application | Select-Object -First 1
2020

2121
$expectedModulePath = Join-Path $env:BUILD_SOURCESDIRECTORY 'out'
22-
$resources = Get-ChildItem $expectedModulePath/*resource.json -ErrorAction SilentlyContinue
22+
$resources = Get-ChildItem $expectedModulePath/*resource.json -ErrorAction SilentlyContinue -Recurse
2323

2424
if (-not $script:dscExe) {
2525
throw "Could not find dsc executable in PATH after setup."

0 commit comments

Comments
 (0)