Skip to content

Commit

Permalink
Tests: Use Force while importing module to export aliases (#9404)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasjordan committed Jun 29, 2024
1 parent 8cc8f0c commit 75bd15e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/manual.pester.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Remove-Module dbatools -ErrorAction Ignore
#imports the module making sure DLL is loaded ok
Import-Module "$ModuleBase\dbatools.psd1" -DisableNameChecking
#imports the psm1 to be able to use internal functions in tests
Import-Module "$ModuleBase\dbatools.psm1" -DisableNameChecking
Import-Module "$ModuleBase\dbatools.psm1" -DisableNameChecking -Force

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

Expand Down

0 comments on commit 75bd15e

Please sign in to comment.