- [x] Update `Start-PSPester` to check for Pester 4.2+ (need 4.2 for exception passthru support) #6667 - [x] Convert usage of `ShouldBeErrorId` to `Should -Throw -ErrorId` #6682 - [x] Update tests that relied on `ShouldBeErrorId` passthru to `Should -Throw -ErrorId -PassThru` - [x] Remove `ShouldBeErrorId` custom function #6891 - [x] Update documentation on how to write tests verifying errors conditions #6687
Start-PSPesterto check for Pester 4.2+ (need 4.2 for exception passthru support) Update Start-PSPester and Restore-PSPester cmdlets in build.psm1 to check for Pester 4.2 #6667ShouldBeErrorIdtoShould -Throw -ErrorIdConvertShouldBeErrorIdtoShould -Throw -ErrorIdin PowerShell tests #6682ShouldBeErrorIdpassthru toShould -Throw -ErrorId -PassThruShouldBeErrorIdcustom function Remove ShouldBeErrorId custom function. #6891