Skip to content

Commit c5cc598

Browse files
committed
Force module import in BeforeAll block to ensure the latest version is used
1 parent bcd3fc7 commit c5cc598

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/instructions/dsc-community-style-guidelines-command-unit-tests.instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ BeforeDiscovery {
153153
BeforeAll {
154154
$script:dscModuleName = 'SqlServerDsc'
155155
156-
Import-Module -Name $script:dscModuleName
156+
Import-Module -Name $script:dscModuleName -Force
157157
158158
$PSDefaultParameterValues['InModuleScope:ModuleName'] = $script:dscModuleName
159159
$PSDefaultParameterValues['Mock:ModuleName'] = $script:dscModuleName

0 commit comments

Comments
 (0)