We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb811a7 commit b038dc1Copy full SHA for b038dc1
src/tests/Module/PSModule/PSModule.Tests.ps1
@@ -64,7 +64,8 @@ Describe 'PSModule - Module tests' {
64
65
Context 'Framework - IsWindows compatibility shim' {
66
BeforeAll {
67
- $script:moduleRef = Import-Module -Name $moduleManifestPath -Force -PassThru
+ Import-Module -Name $moduleManifestPath -Force
68
+ $script:moduleRef = Get-Module -Name $moduleName
69
}
70
It 'Should have $IsWindows defined in the module scope' {
71
# The framework injects "$IsWindows = $true" for PowerShell 5.1 (Desktop edition).
0 commit comments