diff --git a/src/Puppet.Dsc/functions/New-PuppetDscModule.Tests.ps1 b/src/Puppet.Dsc/functions/New-PuppetDscModule.Tests.ps1 index dabe7769..05953416 100644 --- a/src/Puppet.Dsc/functions/New-PuppetDscModule.Tests.ps1 +++ b/src/Puppet.Dsc/functions/New-PuppetDscModule.Tests.ps1 @@ -40,6 +40,7 @@ Describe 'New-PuppetDscModule' -Tag 'Unit' { } Mock Test-Path { $true } Mock Out-Utf8File {} + Mock Invoke-BundleInstall {} Mock Add-PuppetReferenceDocumentation {} Mock Get-Item {} diff --git a/src/Puppet.Dsc/functions/New-PuppetDscModule.ps1 b/src/Puppet.Dsc/functions/New-PuppetDscModule.ps1 index 95763ada..598cf25b 100644 --- a/src/Puppet.Dsc/functions/New-PuppetDscModule.ps1 +++ b/src/Puppet.Dsc/functions/New-PuppetDscModule.ps1 @@ -165,6 +165,7 @@ Function New-PuppetDscModule { } Out-Utf8File -Path $PuppetProviderFilePath -InputObject $Resource.Provider } + Invoke-BundleInstall -PuppetModuleFolderPath $PuppetModuleRootFolderDirectory -Verbose # Generate REFERENCE.md file for the Puppet module from the auto-generated types for each DSC resource Write-PSFMessage -Message 'Writing the reference documentation for the Puppet module'