commit
免费Write a Conventional Commits message for the staged changes, show it for review, and commit only after the user approves it.
中文简介正在准备中。当前显示原文说明。
Use this skill when writing, reviewing, or deciding where to place tests in the Next.js frontend package. Covers which project (unit / integration / storybook) to use for a given scenario, what NOT to duplicate across projects, and file placement conventions for this package.
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
See guidelines.md for the full decision rules and examples.
| Project | Pattern | Environment | Purpose |
|---|---|---|---|
| unit | *.unit.test.ts(x) | happy-dom | Pure logic: utils, hooks, data transforms |
| integration | *.integration.test.tsx | happy-dom | User flows across components with MSW |
| storybook | *.stories.tsx | browser | Visual states, a11y, interaction per component |
"If this test fails, do I tell the designer or the engineer?"
- Designer → storybook
- Engineer → unit or integration
src/components/Button/Button.unit.test.tsxsrc/components/Button/Button.stories.tsxsrc/mocks/handlers/apps/nextjs/.storybook/vitest.config.ts → monorepo root (not in this package)For the full decision guide, do-not-duplicate rules, and code examples,
read guidelines.md in this directory.
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Write a Conventional Commits message for the staged changes, show it for review, and commit only after the user approves it.
中文简介正在准备中。当前显示原文说明。
Push the current branch and open a GitHub pull request whose description follows .github/PULL_REQUEST_TEMPLATE.md.
中文简介正在准备中。当前显示原文说明。