Skip to content

Commit 1b1f404

Browse files
committed
Explicitly importing internals
1 parent e741894 commit 1b1f404

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/manual.pester.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@
22
(
33
[string[]]$Path = '.',
44
[string[]]$Tag
5-
5+
66
)
77

88
$ModuleBase = Split-Path -Path $PSScriptRoot -Parent
99
#removes previously imported dbatools, if any
1010
Remove-Module dbops -ErrorAction Ignore
1111
#imports the module making sure DLL is loaded ok
1212
Import-Module "$ModuleBase\dbops.psd1" -DisableNameChecking
13+
#import internal commands
14+
Get-DBOModuleFileList -Type internal | ForEach-Object { . $_.FullName }
1315
#Import ZipHelper
1416
Import-Module ziphelper -Force
1517

1618
#Run each module function
1719
$params = @{
1820
Script = @{
19-
Path = $Path
21+
Path = $Path
2022
Parameters = @{
2123
Batch = $true
2224
}

0 commit comments

Comments
 (0)