Skip to content

Commit 16643ab

Browse files
committed
Add .psd1 file in test
1 parent 4dd6735 commit 16643ab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

extensions/powershell/powershell.discover.tests.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ BeforeAll {
4646

4747
$adaptedManifestPath = Join-Path $TestDrive "fake.dsc.adaptedresource.json"
4848
$fakeAdaptedManifest | ConvertTo-Json -Depth 10 | Set-Content -Path $adaptedManifestPath
49+
50+
$fakePsd1Path = Join-Path $TestDrive "FakeAdapted.psd1"
51+
Set-Content -Path $fakePsd1Path -Value "@{ ModuleVersion = '0.1.0' }"
4952
$script:OldPSModulePath = $env:PSModulePath
5053
$env:PSModulePath += [System.IO.Path]::PathSeparator + $TestDrive
5154

0 commit comments

Comments
 (0)