Adapting Pester Assertions to the PowerShell Prompt With AI: A Hands-On Walkthrough
dfinke · x · 2026-12-03
Doug Finke shares a concrete practice: point AI at an existing codebase and ask it to extract and reshape the part you need for your workflow — what he calls an "AI chop shop" or "AI 3D printer" approach.
- The itch: Pester's Should assertions (Should -Be / -Contain / -BeEquivalent) normally live inside Describe/It test suites, but during development you often just want to verify a few expectations right at the PowerShell prompt without setting up a test file.
- The approach: he had AI adapt Pester itself, starting with 1 + 2 | Should -Be 3 as an in-session assertion. A passing assertion returns no value, breaking the pipeline — so the work makes the check happen while letting the value keep flowing, enabling a faster PowerShell feedback loop.
- Resources: full write-up on his blog, code open-sourced on GitHub.
More from coding & agent
- YC-backed o11 launches full catalog giving AI agents one wallet for thousands of paid tools — ycombinator · 2026-12-03
- No big-data background, just AI prompting: DuckDB replaces StarRocks at work — teodorio · 2026-12-03
- AI agent buys its own compute with Bitcoin via Lightning L402 — RSync25 · 2026-12-03
- metacomputer Launches to Let Any AI Agent Automate Your Mac and Web Apps — jradoff · 2026-12-03
- Laravel Ships a Full-Stack Go Framework; mitsuhiko Jokes: Where's the x86 Assembler One? — mitsuhiko · 2026-12-03
- Grok Bot Adds QuickBooks, Shopify, HubSpot and More Connectors for Small Businesses — XFreeze · 2026-12-03