테스트 파일 위치 컨벤션 (Co-location / Flat). Use when: 테스트 파일 생성, test file creation, 테스트 파일 위치 결정, 새 테스트 추가, __tests__ 디렉토리 여부 판단.
From tddnpx claudepluginhub seonghyeonkimm/my-claude-code-config --plugin tddThis skill uses the workspace's default tool permissions.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Details PluginEval's skill quality evaluation: 3 layers (static, LLM judge), 10 dimensions, rubrics, formulas, anti-patterns, badges. Use to interpret scores, improve triggering, calibrate thresholds.
테스트 파일은 대상 소스 파일과 같은 디렉토리에 배치한다.
__tests__/ 또는 __test__/ 디렉토리를 새로 만들지 않는다.
{source}.test.ts (또는 프로젝트의 테스트 확장자).test 접미사만 추가| 소스 파일 | 테스트 파일 (O) | 테스트 파일 (X) |
|---|---|---|
src/domain/cart.ts | src/domain/cart.test.ts | src/__tests__/cart.test.ts |
src/hooks/useCart.ts | src/hooks/useCart.test.ts | __tests__/hooks/useCart.test.ts |
src/components/Button.tsx | src/components/Button.test.tsx | src/components/__tests__/Button.test.tsx |
프로젝트에 이미 __tests__/ 컨벤션이 확립되어 있고 기존 테스트가 모두 해당 디렉토리에 있으면 기존 컨벤션을 따른다.