Skip to main content

test-generator

Generates test cases for functions and components. Use when writing tests or creating test suites.

소스 정보

저장소
Tibsfox/gsd-skill-creator
최근 소스 활동
2026년 4월 25일 21:14
감지된 SKILL.md 언어
영어
스타
70
포크
10

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
test-generator
description
Generates test cases for functions and components. Use when writing tests or creating test suites.
version
1.0.0
format
2025-10-02T00:00:00.000Z
triggers
["writing tests or creating test suites"]
updated
2026-04-25T00:00:00.000Z
status
ACTIVE
# Test Generation ## Structure (AAA Pattern) ```typescript it('should [expected] when [condition]', () => { // Arrange — set up data // Act — perform operation // Assert — verify outcome }); ``` ## Test Categories | Category | Test For | |----------|----------| | Happy path | Valid input → expected output | | Edge cases | Empty, null, boundary values | | Error cases | Invalid input, failures | | Side effects | State changes, calls made | | Async | Resolve/reject paths | ## Naming Pattern: `should [behavior] when [condition]` ## Organization - Group with `describe` by function/method - Reset state in `beforeEach` - One concept per test ## Anti-Patterns | Don't | Do | |-------|------| | Test implementation | Test behavior | | Share mutable state | Reset in beforeEach | | Many assertions per test | One concept per test | | Test private methods | Test through public API | | Snapshot overuse | Assert specific values |
GitHub에서 보기