manakuro/asana-clone-app / apps/nextjs/.claude/skills/testing
testing
VerifiedUse 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.
Testing skill
See guidelines.md for the full decision rules and examples.
Quick reference
| 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 |
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.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |