From 899aa62eff86838a8b0c19fc6e838e2f1e93b8d8 Mon Sep 17 00:00:00 2001 From: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> Date: Wed, 9 Mar 2022 15:24:52 +0530 Subject: [PATCH] Use Pester 4 --- bin/test.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/test.ps1 b/bin/test.ps1 index 2bf264c..6a741d9 100644 --- a/bin/test.ps1 +++ b/bin/test.ps1 @@ -1,3 +1,5 @@ +#Requires -Modules @{ ModuleName = 'Pester'; MaximumVersion = '4.99' } + if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) } $result = Invoke-Pester "$psscriptroot/.." -PassThru exit $result.FailedCount