跳转到主要内容

router-act

星标141,700
分支16,721
更新时间2026年6月9日 19:10

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.

· 实时索引

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

想先保存到本地?可下载 RuleHub 当前索引到的 GitHub 仓库压缩包。

下载 Zip
文件资源管理器2 个文件
SKILL.mdreadonly
namerouter-act
descriptionHow to write end-to-end tests using createRouterAct and LinkAccordion. Use when writing or modifying tests that need to ...

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.

When to use

Use this skill when the user needs help with tasks related to router act.

Guidelines

  • Follow repository conventions in vercel/next.js
  • Prefer minimal, focused changes
  • Validate outputs before finishing