router-act
An internal skill in the Next.js repository for writing end-to-end tests that involve prefetching, client-side navigation or the segment cache.
Was der Skill vermittelt
An internal skill in the Next.js repository for writing end-to-end tests that involve prefetching, client-side navigation or the segment cache. It explains the repository's createRouterAct helper, which intercepts router requests inside a scope, buffers the responses and asserts on them, so tests do not depend on exact request counts. Links are hidden behind a LinkAccordion component and revealed inside the scope so prefetches happen only when the test wants them, and the preferred assertion proves the cache served the data with no requests. It warns against polling and timeouts, reading page content before the scope ends, and going back with open accordions, and uses Playwright's fake clock for staleness tests.
Funktionen
- Control router prefetch timing in tests
- Assert that the cache served a navigation
- Test staleness with a fake clock
Überblick
- Herausgeber
- Vercel
- Tool
- Playwright
Installation
Das Projekt dokumentiert keine Installationsschritte, die wir bestätigen konnten. Zur Anleitung des Projekts
MCP-Server und Skills können Code auf deinem Rechner ausführen und auf deine Daten zugreifen. Prüfe den Quellcode, bevor du etwas installierst.
Details
| Angabe | Wert | Quelle |
|---|---|---|
| Typ | Skill | |
| Tools | Playwright, Testing | |
| Herausgeber | Vercel | Quelle |
| Offizieller Status | In der Dokumentation nicht angegeben | |
| Braucht API-Key oder Anmeldung | In der Dokumentation nicht angegeben | |
| Enthält Skripte | Nein | Quelle |
| Plattformen | In der Dokumentation nicht angegeben | |
| KI-Clients | In der Dokumentation nicht angegeben | |
| Lizenz | MIT | Quelle |
| Preis | In der Dokumentation nicht angegeben | |
| Aktivität | Letzter Commit am 11. Nov. 2026143.470 GitHub-SterneKeine Download-Daten verfügbar (nicht auf npm oder PyPI) | Quelle |
| Links | Repository Website |
Mehr von Vercel
1 Server · 65 Skills
- vercel-cli (Skill)
- vercel-flags (Skill)
- access-protected-vercel-deployment (Skill)
- ai-gateway (Skill)
- ai-sdk (Skill)
- auth (Skill)
Auch zu finden unter: Testing
Quellen
- Skill-Datei (SKILL.md)github.com/vercel/next.js10. Nov. 2026
- GitHub-Repositorygithub.com/vercel/next.js · Belegt: Lizenz, Herausgeber, Aktivität11. Nov. 2026
- Ordner im Repository (router-act)github.com/vercel/next.js · Belegt: Enthält Skripte10. Nov. 2026