本文へ移動
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(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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 のスキルをすべて見る

このスキルの問題を報告する