param(
    [string]$TestName
)

$config = New-PesterConfiguration
$config.Run.Path = $PSScriptRoot
$config.Run.Exit = $true
$config.TestResult.Enabled = $true

if ($TestName) {
    $config.Filter.FullName = $TestName
}

$env:PATH = "$PSScriptRoot\..\target\debug;$env:PATH"
$env:PKL_PATH = "$PSScriptRoot\..\pkl"

Invoke-Pester -Configuration $config
