Skip to content

Commit

Permalink
lil somethin
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Oct 20, 2024
1 parent 9d934b7 commit 67be969
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions private/testing/Invoke-ManualPester.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,10 @@ function Invoke-ManualPester {
}

#removes previously imported dbatools, if any
Remove-Module dbatools -ErrorAction Ignore
# No need the force will do it
# Remove-Module dbatools -ErrorAction Ignore
#imports the module making sure DLL is loaded ok
Import-Module "$ModuleBase\dbatools.psd1" -DisableNameChecking
Import-Module "$ModuleBase\dbatools.psd1" -DisableNameChecking -Force
#imports the psm1 to be able to use internal functions in tests
Import-Module "$ModuleBase\dbatools.psm1" -DisableNameChecking -Force

Expand Down
5 changes: 3 additions & 2 deletions tests/appveyor.pester.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ Set-Location $ModuleBase
# required to calculate coverage
$global:dbatools_dotsourcemodule = $true
$dbatools_serialimport = $true
#imports the psm1 to be able to use internal functions in tests
Import-Module "$ModuleBase\dbatools.psm1" -Force

#imports the module making sure DLL is loaded ok
Import-Module "$ModuleBase\dbatools.psd1"
#imports the psm1 to be able to use internal functions in tests
Import-Module "$ModuleBase\dbatools.psm1" -Force

Update-TypeData -AppendPath "$ModuleBase\xml\dbatools.types.ps1xml" -ErrorAction SilentlyContinue # ( this should already be loaded by dbatools.psd1 )
Start-Sleep 5
Expand Down

0 comments on commit 67be969

Please sign in to comment.