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.
O que a skill ensina
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.
O que faz
- Control router prefetch timing in tests
- Assert that the cache served a navigation
- Test staleness with a fake clock
Sobre
- Publicador
- Vercel
- Ferramenta
- Playwright
Instalação
O projeto não documenta passos de instalação que tenhamos conseguido confirmar. Veja as instruções do próprio projeto
Servidores MCP e skills podem executar código no seu computador e agir sobre os seus dados. Revise o código-fonte antes de instalar.
Detalhes
| Fato | Valor | Fonte |
|---|---|---|
| Tipo | Skill | |
| Ferramentas | Playwright, Testes | |
| Publicador | Vercel | fonte |
| Status oficial | Não informado na documentação | |
| Exige chave de API ou login | Não informado na documentação | |
| Inclui scripts | Não | fonte |
| Plataformas | Não informado na documentação | |
| Clientes de IA | Não informado na documentação | |
| Licença | MIT | fonte |
| Preço | Não informado na documentação | |
| Atividade | Último commit em 11 de nov. de 2026143.470 estrelas no GitHubDados de download indisponíveis (não está no npm nem no PyPI) | fonte |
| Links | Repositório Site |
Mais de Vercel
1 servidor · 70 skills
- vercel-cli (Skill)
- vercel-flags (Skill)
- access-protected-vercel-deployment (Skill)
- ai-gateway (Skill)
- ai-sdk (Skill)
- auth (Skill)
Também listado em: Testes
Fontes
- Arquivo da skill (SKILL.md)github.com/vercel/next.js10 de nov. de 2026
- Repositório no GitHubgithub.com/vercel/next.js · Comprova: Licença, Publicador, Atividade11 de nov. de 2026
- Pasta no repositório (router-act)github.com/vercel/next.js · Comprova: Inclui scripts10 de nov. de 2026