---
title: "Pester Migration - Air Market"
description: "You bumped Pester, and now a pile of PowerShell tests fail for reasons that have nothing to do with your code. This walks through what changed between versions and rewrites the tests to match. Reach…"
canonical: "https://airmarket.ai/app/pester-migration"
---

[Air Market](/) / [Developer Tools](/category/devtools) / Pester Migration

Skill by [GitHub](/@github)

# Pester Migration

Your PowerShell tests broke after the version bump

## What this does

You bumped Pester, and now a pile of PowerShell tests fail for reasons that have nothing to do with your code. This walks through what changed between versions and rewrites the tests to match. Reach for it when you are upgrading a suite or staring at tests that broke the moment the version moved.

### Top 3 things it does for you

- Upgrade a test suite from one Pester version to the next
- Fix .Tests.ps1 files that broke after bumping Pester
- Convert legacy Should and Invoke-Pester syntax

## Information

**Pester Migration at a glance**

|  |  |
| --- | --- |
| Kind | Skill |
| Publisher | [GitHub](/@github) |
| Category | [Developer Tools](/category/devtools) |
| Works with | Agent Skills - an open standard supported by 40+ agents |
| Size | 33 KB |
| Licence | MIT |
| Repository | [github/awesome-copilot](https://github.com/github/awesome-copilot/tree/e353a8cfb8124d44905fc73214d873cea4a0ba3b/skills/pester-migration) |
| GitHub stars | 38,187 (as of Nov 2026) |
| Installs | 26, counted by skills.sh (Nov 2026) |

## Security report

**Verified.** AIR scanned this exact version of Pester Migration and flagged nothing. AIR's verdict: **safe**.

**What Pester Migration's check was run against**

|  |  |
| --- | --- |
| Commit | e353a8cfb8124d44905fc73214d873cea4a0ba3b |
| Content hash | 81e188e31b2e4a5db2f8ba14517e2faf53f6491991d9b1fdd8c2b61f273c3399 |
| Files read | [Browse the files at this exact commit](https://github.com/github/awesome-copilot/blob/e353a8cfb8124d44905fc73214d873cea4a0ba3b/skills/pester-migration/SKILL.md) |

A scan is named by the exact content it read, not by a version number. A different version is a different artifact, and nothing here applies to a version AIR has not scanned.

[Read the full security report for Pester Migration](/security/pester-migration)

## About Pester Migration

This handles upgrading PowerShell Pester test suites across major versions: v3 to v4, v4 to v5, and v5 to v6. It is for the moment you bump the version and the .Tests.ps1 files stop working.

It covers the Discovery and Run two-phase model, moving setup into BeforeAll, and the difference between $PSScriptRoot and $MyInvocation. On mocks, it covers the change from Assert-MockCalled to Should -Invoke and the removal of fall-through.

It also covers moving Invoke-Pester parameters to PesterConfiguration, data-driven -ForEach and -TestCases, and the v6 breaking changes - so it applies equally when you are modernizing legacy Should or Invoke-Pester syntax on your own schedule.

## What's inside

- SKILL.md - instructions
- references/v3-to-v4.md - reference
- references/v4-to-v5.md - reference
- references/v5-to-v6.md - reference

## Questions

### Is Pester Migration safe to install?

AIR scanned this exact version of Pester Migration and flagged nothing. AIR's verdict: safe. The verdict is named by the content that was read, at commit e353a8cfb812, so it cannot drift onto a version nobody scanned. The full report is at https://airmarket.ai/security/pester-migration.

### How do I install Pester Migration?

Open https://airmarket.ai/app/pester-migration on Air Market and use the install action: Air Market hands Claude a prompt naming this exact skill, and Claude sets it up. Source, pinned to the exact commit this listing describes: https://github.com/github/awesome-copilot/tree/e353a8cfb8124d44905fc73214d873cea4a0ba3b/skills/pester-migration. Install from that link, not the branch.

## Related on Air Market

- [More Developer Tools listings](/category/devtools)
- [Everything by GitHub](/@github)

---

Canonical URL: <https://airmarket.ai/app/pester-migration>
