File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626)
2727
2828try {
29- Import-Module - Name Pester - MinimumVersion ' 5.2.0' - ErrorAction Stop
29+ $modulePath = if ($CustomModulePath ) { Resolve-Path $CustomModulePath - ErrorAction Stop } else { ' Pester' }
30+ Import-Module - Name $modulePath - MinimumVersion ' 5.2.0' - ErrorAction Stop
3031} catch {
3132 if ($PSItem.FullyQualifiedErrorId -ne ' Modules_ModuleWithVersionNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand' ) { throw }
3233
@@ -121,8 +122,6 @@ function Unregister-PesterPlugin ([hashtable]$PluginConfiguration) {
121122
122123# Main Function
123124function Invoke-Main {
124- $modulePath = if ($CustomModulePath ) { Resolve-Path $CustomModulePath - ErrorAction Stop } else { ' Pester' }
125- Import-Module - MinimumVersion ' 5.2.0' - Name $modulePath - ErrorAction Stop
126125 $pluginModule = Import-PrivateModule $PSScriptRoot / PesterTestPlugin.psm1
127126
128127 $configArgs = @ {
You can’t perform that action at this time.
0 commit comments