Devadex

Angular Vitest Migration Kit

gumroad   $15.00   by andrehh
32d old

Angular v21 made Vitest the default test runner. Then your fakeAsync tests started failing with Error: Expected to be running in 'ProxyZone', but it was not found, and the official docs just say "convert them."This kit does two things the docs don't: it tells you how big the migration is before you start, then gives you the conversion for every test that breaks, verified in a real Angular 21.2.14 / Vitest 4.1.8 project.What's inside A migration estimator. A dependency-free script that scans your specs and buckets every fakeAsync test by risk: LOW (pure timer), MEDIUM (RxJS scheduler), HIGH (a Promise is in the chain, the microtask trap), with an effort estimate. Scope the job, and know where to be careful. The guide (PDF). The config, the 7-step runbook, the Jasmine→Vitest cheatsheet, and the fakeAsync cookbook, organized by the same risk tiers. Before/after conversions for every pattern that breaks: timers, RxJS debounce, debounce + HttpClient, async validators, OnPush components, signal effects, and marble tests, including the microtask trap that silently breaks Promise-based tests. Copy-paste config. The real angular.json test target, tsconfig.spec.json, and a headless CI workflow. An AI-agent skill. Drop it into Claude Code, Cursor, or Copilot. It scopes the suite with the estimator, converts the HIGH-risk tests first, and stops only on a green run. A runnable demo. A real Angular v21 app where every conversion passes. npm install && npm test, eleven green. Who it's for — Angular developers moving an existing Karma/Jasmine suite to Vitest, especially anyone who just upgraded to v21 and watched their timing tests turn red.What it isn't — Not a course, not a framework intro. It assumes you know Angular testing and goes straight to the migration.Built and kept current by André Ramos (andreramos.dev). Stamped to Angular v21 / Vitest 4.

Get it → andrehh.gumroad.com

Found on Devadex — the discovery index for independent software the big search engines bury. More from gumroad.

Report this listing