javascript-testing-patterns
하는 일
이 가이드는 JavaScript와 TypeScript 코드가 올바르게 작동하는지 테스트하는 방법을 가르칩니다. 새 프로젝트 설정부터 더 복잡한 테스트 시나리오까지 다룹니다.
사용하는 경우
- ✓새 프로젝트의 테스트를 설정할 때.
- ✓코드의 특정 부분에 대한 테스트를 작성할 때.
- ✓코드의 서로 다른 부분이 상호작용하는 방식을 테스트할 때.
스킬 링크
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/javascript-testing-patterns/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“외부 데이터에 의존하는 함수는 어떻게 테스트할 수 있을까요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 이 가이드의 지침을 사용해 테스트를 설정하고 작성하는 방법을 보여 줍니다. 여러 종류의 테스트를 설명하고, 외부 의존성을 시뮬레이션하는 방법도 알려 줄 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
JavaScript Testing Patterns
Comprehensive guide for implementing robust testing strategies in JavaScript/TypeScript applications using modern testing frameworks and best practices.
Use this skill when
- Setting up test infrastructure for new projects
- Writing unit tests for functions and classes
- Creating integration tests for APIs and services
- Implementing end-to-end tests for user flows
- Mocking external dependencies and APIs
- Testing React, Vue, or other frontend components
- Implementing test-driven development (TDD)
- Setting up continuous testing in CI/CD pipelines
Do not use this skill when
- The task is unrelated to javascript testing patterns
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
Resources
resources/implementation-playbook.mdfor detailed patterns and examples.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
자주 묻는 질문
프로그래밍에서 테스트란 무엇인가요?
코드가 기대대로 작동하고 버그가 없는지 확인하기 위해 코드에 하는 점검과 같습니다.
TDD란 무엇인가요?
'테스트 주도 개발(Test-Driven Development)'의 약자입니다. 실제 코드를 작성하기 전에 테스트를 먼저 작성하는 방법입니다.
통합 테스트란 무엇인가요?
코드의 여러 부분이 서로 제대로 협력하는지, 즉 올바르게 소통하는지 확인하는 테스트입니다.
상세 정보
작성자의 원본 설명
Comprehensive guide for implementing robust testing strategies in JavaScript/TypeScript applications using modern testing frameworks and best practices.
인기도
- GitHub 스타
- 48k
- 순위
- #4985
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
00-andruia-consultant
48k에이전트가 AI 프로젝트를 시작하거나 개선할 수 있도록 코드를 분석하고 스페인어로 실행 계획을 세워 줍니다.
007
48k에이전트가 보안 감사와 위협 모델링을 수행해 공격과 취약점으로부터 프로젝트를 보호하도록 돕습니다.
10-andruia-skill-smith
48k에이전트가 AI 도구의 작동 방식을 정의하고 문서를 쓰며 구조를 검증하도록 돕습니다.
20-andruia-niche-intelligence
48k에이전트가 신뢰할 수 있는 자료를 바탕으로 특정 산업의 맥락, 규칙, 사용 패턴, 위험을 정리한 요약을 만들도록 돕습니다.
비슷한 스킬
test-driven-development
311k에이전트가 기능이나 수정을 만들기 전에 실패하는 테스트를 먼저 쓰고, 그것을 통과시키는 가장 작은 코드를 작성하도록 가르칩니다.
verification-before-completion
311k에이전트가 작업, 수정, 빌드가 완료되었거나 통과했다고 말하기 전에 실제 점검을 실행하고 결과를 읽도록 가르칩니다.
migrate-to-shoehorn
310k테스트 파일의 위험한 타입 캐스팅을 shoehorn 라이브러리로 바꿔, 테스트가 일부 데이터만 써도 타입 검사를 통과하도록 돕습니다.