Skip to content

Commit

Permalink
Fix parameter name in PesterInterface.ps1 (#121)
Browse files Browse the repository at this point in the history
The parameter name in PesterInterface.ps1 do not match the expected in pesterTestController.ts
  • Loading branch information
johlju authored Mar 29, 2022
1 parent e41d8d2 commit 7f8db5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scripts/PesterInterface.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7f8db5f

Please sign in to comment.