跳到正文
cccskills
免费在 GitHub 公开

testing

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.

中文简介正在准备中。当前显示原文说明。

manakuro/asana-clone-app星标 20(GitHub 20 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(2)

  • SKILL.md1.6 KB
  • guidelines.md5.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Testing skill

See guidelines.md for the full decision rules and examples.

Quick reference

ProjectPatternEnvironmentPurpose
unit*.unit.test.ts(x)happy-domPure logic: utils, hooks, data transforms
integration*.integration.test.tsxhappy-domUser flows across components with MSW
storybook*.stories.tsxbrowserVisual states, a11y, interaction per component

One-line decision rule

"If this test fails, do I tell the designer or the engineer?"

  • Designer → storybook
  • Engineer → unit or integration

File placement in this package

  • Unit / integration tests → co-located with the component: src/components/Button/Button.unit.test.tsx
  • Stories → co-located with the component: src/components/Button/Button.stories.tsx
  • MSW handlers → src/mocks/handlers/
  • Storybook config → 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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

commit

免费

Write a Conventional Commits message for the staged changes, show it for review, and commit only after the user approves it.

中文简介正在准备中。当前显示原文说明。

manakuro/asana-clone-app202026年10月8日 更新

pr

免费

Push the current branch and open a GitHub pull request whose description follows .github/PULL_REQUEST_TEMPLATE.md.

中文简介正在准备中。当前显示原文说明。

manakuro/asana-clone-app202026年10月8日 更新

查看 manakuro 的全部技能

报告此技能的问题