Skip to content
Back to skills

Testing

ASecurity

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.

  • 22 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
developmentnextjstestingfrontend

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add manakuro/asana-clone-app --skill testing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Testing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Testing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/manakuro-testing/badge)](https://www.skillsdirectory.com/skills/manakuro-testing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: testing
description: >
  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

| 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.

Files in this skill

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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.