Router Act

How to write end-to-end tests using createRouterAct and LinkAccordion. Use when writing or modifying tests that need to control the timing of internal Next.js requests (like prefetches) or assert on their responses. Covers the act API, fixture patterns, prefetch control via LinkAccordion, fake clocks, and avoiding flaky testing patterns.

Vercel Labs d09bea2 12.2 KB Updated 28.7k repo stars

File contents

vercel-labs/next.js/tree/main/.agents/skills/router-act commit d09bea29a5

Frequently asked questions

npx skillmds@latest add vercel-labs/router-act