Skip to content

manakuro/asana-clone-app / apps/nextjs/.claude/skills/testing

testing

Verified

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.

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.

finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 319kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 319kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 319kUpdated Claude CodeCodexVerifiedInstall
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: 196kUpdated Claude CodeCodexVerifiedInstall