Reference docMembers
Migrating Pester v4 → v5
Migrating Pester v4 → v5 is a reference document for GitHub Copilot, from the GitHub awesome-copilot collection by github. The full text is about 1,523 words in 10 sections, with 9 code blocks and 13 tables. It is a supporting file that a skill or agent reads while it works, so the main instructions can stay short.
It is most useful for people working in Testing and QA who use GitHub Copilot.
What it covers
- The one concept that explains everything: Discovery and Run
- Fix 1 - Move file setup into BeforeAll and use $PSScriptRoot
- Fix 3 - -Skip and -TestCases are evaluated during Discovery
- Fix 4 - Variables don't leak from Discovery into the test
- Fix 5 - Should -Throw matches with -like wildcards
- Fix 6 - Mocks: scoping, debugging, and InModuleScope
- Fix 7 - Invoke-Pester parameters → New-PesterConfiguration
- The new result object
- Other removed / changed things in v5
- v4 → v5 checklist
The full text is in the members library
Book a call and we will give you access to the full GitHub Copilot library: every entry in full, search by meaning, copy and download.
Source: https://github.com/github/awesome-copilot/blob/main/skills/pester-migration/references/v4-to-v5.md
Author: github, GitHub awesome-copilot. License: MIT.