From 7f8db5ff5263b90dfe107d096a2a5d7f97445168 Mon Sep 17 00:00:00 2001 From: Johan Ljunggren Date: Tue, 29 Mar 2022 16:57:46 +0200 Subject: [PATCH] Fix parameter name in PesterInterface.ps1 (#121) The parameter name in PesterInterface.ps1 do not match the expected in pesterTestController.ts --- Scripts/PesterInterface.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/PesterInterface.ps1 b/Scripts/PesterInterface.ps1 index 253fda31..d89d6573 100644 --- a/Scripts/PesterInterface.ps1 +++ b/Scripts/PesterInterface.ps1 @@ -18,7 +18,7 @@ param( #If specified, the shim will write to a temporary file at Pipename path and this script will output what would have been written to the stream. Useful for testing. [Switch]$DryRun, #An optional custom path to the Pester module. - [String]$PesterModulePath + [String]$CustomModulePath ) $VerbosePreference = 'SilentlyContinue' @@ -457,7 +457,7 @@ Warning: This only works once, not designed for repeated plugin injection #Main Function function Invoke-Main { - $modulePath = if ($PesterModulePath) { Resolve-Path $PesterModulePath -ErrorAction Stop } else { 'Pester' } + $modulePath = if ($CustomModulePath) { Resolve-Path $CustomModulePath -ErrorAction Stop } else { 'Pester' } $pesterModule = Import-Module -MinimumVersion '5.2.0' -Name $modulePath -ErrorAction Stop -PassThru # These should be unique which is why we use a hashset