Skip to content

Commit 75bd15e

Browse files
Tests: Use Force while importing module to export aliases (#9404)
1 parent 8cc8f0c commit 75bd15e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/manual.pester.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Remove-Module dbatools -ErrorAction Ignore
158158
#imports the module making sure DLL is loaded ok
159159
Import-Module "$ModuleBase\dbatools.psd1" -DisableNameChecking
160160
#imports the psm1 to be able to use internal functions in tests
161-
Import-Module "$ModuleBase\dbatools.psm1" -DisableNameChecking
161+
Import-Module "$ModuleBase\dbatools.psm1" -DisableNameChecking -Force
162162

163163
$ScriptAnalyzerRulesExclude = @('PSUseOutputTypeCorrectly', 'PSAvoidUsingPlainTextForPassword', 'PSUseBOMForUnicodeEncodedFile')
164164

0 commit comments

Comments
 (0)