testing SKILL.md skillA

testing from dalestudy/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add dalestudy/skills/testing@v1.1.0

Pins v1.1.0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
dalestudy/skills
Path
skills/testing/SKILL.md
Versions recorded
4
Latest version
v1.1.0, committed Feb 24, 2026
First version recorded
Jan 27, 2026
Size
6,387 bytes
Repository stars
4
License
MIT

React Testing Library 및 Vitest 기반 테스팅 모범 관례. 다음 상황에서 사용: (1) .test.tsx, .test.ts, .spec.tsx, .spec.ts 파일 작업 시, (2) 컴포넌트 테스트 작성 또는 리팩토링 시, (3) 'test', 'testing', 'vitest', 'RTL', 'getByRole', 'userEvent', 'waitFor', 'expect' 키워드 포함 작업 시, (4) 비동기 로직 또는 사용자 상호작용 테스트 작성 시.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Testing Library

React Testing Library 기반 테스트 작성 모범 관례 및 안티패턴 회피 가이드.

## 핵심 원칙

Testing Library의 철학: **사용자가 사용하는 방식대로 테스트하라**

1. **접근성 기반 쿼리 우선** - 실제 사용자가 요소를 찾는 방식 사용
2. **구현 세부사항 테스트 금지** - 컴포넌트 내부 상태/메서드 직접 접근 지양
3. **실제 사용자 행동 시뮬레이션** - userEvent 사용, fireEvent 지양
4. **비동기 처리 명시적 대기** - waitFor, findBy 활용

## 쿼리 우선순위

Testing Library는 다양한 쿼리를 제공하지만, **접근성과 사용자 경험을 반영하는 순서**로 사용해야 함.

### 권장 쿼리 순서 (높음 → 낮음)

1. **`getByRole`** (최우선) - 스크린 리더가 인식하는 방식
2. **`getByLabelText`** - 폼 요소 (label과 연결된 input)
3. **`getByPlaceholderText`** - placeholder가 명확한 경우
4. **`getByText`** - 텍스트 콘텐츠로 검색
5. **`getByDisplayValue`** - 현재 입력된 값으로 검색 (폼 요소)
6. **`getByAltText`** - 이미지 alt 속성
7. **`getByTitle`** - title 속성 (tooltip 등)
8. **`getByTestId`** (최후 수단) - 다른 방법이 불가능할 때만 사용

**상세 가이드**: [references/query-priority.md](references/query-priority.md)

## 사용자 상호작용 테스트

### userEvent 사용 (권장)

```typescript
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';

test('사용자가 폼을 제출할 수 있다', async () => {
  const user = userEvent.setup();
  render(<LoginForm />);

  await user.type(screen.getByRole('textbox', { name: /이메일/i }), 'user@example.com');
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add dalestudy/skills/testing@sha256:bccd7bd1abc8f4ca

The line at the top of this page pins the label v1.1.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_vaaao5uk7tgr4tl7.svg)](https://markdownregistry.com/a/art_vaaao5uk7tgr4tl7)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 4 versions of this file, between Jan 27, 2026 and Feb 24, 2026, about one every 9 days.

versioncommittedcommitsizeaudit
v1.1.0 latest2026-02-24 e0db1ed 6,387 BA view · diff
v1.0.12026-01-28 e5a73ff 5,373 BA view · diff
v1.02026-01-27 b5ed7c5 5,853 BA view · diff
git:20260127.44b69392026-01-27 44b6939 5,793 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6387 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

dalestudy/skills · 4 stars · license MIT · pushed 2026-10-18 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_vaaao5uk7tgr4tl7
GET https://markdownregistry.com/api/v1/resolve?ref=dalestudy/skills/testing
GET https://markdownregistry.com/api/v1/blob/bccd7bd1abc8f4cab46a058c5d9787d88579d3627a1fcf5b9d5cbea571f573e6

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from dalestudy/skills

AGENTS.md AGENTS.md file
dalestudy/skills · AGENTS.md
git:20261018.387c1a8 · audit A · 4 stars
CLAUDE.md CLAUDE.md file
dalestudy/skills · CLAUDE.md
git:20260128.50669c5 · audit B · 4 stars
bun SKILL.md skill
dalestudy/skills · skills/bun/SKILL.md · Node.js 대신 Bun 런타임 사용을 위한 스킬. 다음 상황에서 사용: (1) 새 JavaScript/TypeScript 프로젝트 생성 시, (2) package.json 또는 의존성 관련 작업 시, (3)…
v1.0.0 · audit C · 4 stars
cloudflare SKILL.md skill
dalestudy/skills · skills/cloudflare/SKILL.md · DaleStudy 조직의 Cloudflare 사용 규칙 (Workers 배포, 시크릿 관리, PR 미리보기, URL 형식). 다음 상황에서 사용: (1) wrangler.jsonc 또는 wrangler.toml…
v1.1.0 · audit A · 4 stars
git SKILL.md skill
dalestudy/skills · skills/git/SKILL.md · Git 버전 관리 모범 관례 및 워크플로우 가이드. 다음 상황에서 사용: (1) Git 커밋 메시지 작성 시 (Conventional Commits 규칙 적용), (2) 브랜치 생성 및 관리 시 (GitHub…
v1.0.0 · audit A · 4 stars
github-actions SKILL.md skill
dalestudy/skills · skills/github-actions/SKILL.md · GitHub Actions 워크플로우 생성, 보안 및 버전 관리 스킬. 다음 상황에서 사용: (1) 새 워크플로우 파일(.yml) 작성 시, (2) 기존 워크플로우 수정 시, (3) 액션 버전 검토 또는 업데이트…
v2.0.0 · audit A · 4 stars
github SKILL.md skill
dalestudy/skills · skills/github/SKILL.md · GitHub CLI(gh)를 활용한 GitHub 플랫폼 상호작용 가이드. 다음 상황에서 사용: (1) GitHub 이슈 생성, 조회, 수정 시, (2) Pull Request 생성, 리뷰, 병합 시, (3)…
v1.0.0 · audit A · 4 stars
mcp-server SKILL.md skill
dalestudy/skills · skills/mcp/SKILL.md · mcp 서버 연결 문제를 분석하고 최신 specification 기준으로 구현을 검증한다. tools/list 또는 tools/call 오류, stdio sse http transport 이슈, resources…
v1.0.0 · audit A · 4 stars
react SKILL.md skill
dalestudy/skills · skills/react/SKILL.md · React 성능 최적화 및 베스트 프랙티스 스킬. Vercel Engineering 가이드 기반, 프레임워크 비종속. 다음 상황에서 사용: (1) React 컴포넌트(.tsx, .jsx) 작성 또는 수정 시…
v1.0.0 · audit A · 4 stars
skill-creator SKILL.md skill
dalestudy/skills · skills/skill-creator/SKILL.md · DaleStudy/skills 저장소의 스킬 생성, 수정, 검증 시 사용. 다음 상황에서 활성화: (1) 새 스킬 생성 요청 시, (2) skills/ 디렉토리 내 SKILL.md 파일 수정 시, (3)…
v1.2.0 · audit A · 4 stars
storybook SKILL.md skill
dalestudy/skills · skills/storybook/SKILL.md · Storybook 스토리 작성 및 CSF 3.0 베스트 프랙티스 스킬. 다음 상황에서 사용: (1) 새 스토리 파일(.stories.tsx, .stories.ts) 작성 시, (2) 기존 스토리 수정 시, (3)…
v1.1.0 · audit A · 4 stars
typescript SKILL.md skill
dalestudy/skills · skills/typescript/SKILL.md · TypeScript 타입 정의 및 베스트 프랙티스 스킬. 다음 상황에서 사용: (1) TypeScript 파일(.ts, .tsx) 작성 또는 수정 시, (2) 타입 정의(interface, type) 작업 시…
v1.0.0 · audit A · 4 stars

Every file in dalestudy/skills

Other files named testing

testing SKILL.md skill
garrytan/gbrain · skills/testing/SKILL.md · Skill validation framework PLUS daily test-suite health and regression intelligence. Validates skill conformance…
v1.1.0 · audit A · 31,074 stars
testing SKILL.md skill
davepoon/buildwithclaude · plugins/cc-best/skills/testing/SKILL.md · Testing strategies and methodologies including TDD, E2E testing, and multi-framework support
git:20260307.6b5172a · audit A · 3,660 stars
testing SKILL.md skill
live-codes/livecodes · .agents/skills/livecodes/testing/SKILL.md · Write and run automated tests with Jest and Testing Library in the browser. Import code from script editor, use watch…
git:20260914.daf8be4 · audit A · 1,521 stars
testing Cursor rule
thedaviddias/llms-txt-hub · .cursor/rules/testing.mdc · Rules for writing Jest tests in TypeScript
git:20250301.62fad3c · audit A · 914 stars
testing SKILL.md skill
oliver-kriska/claude-elixir-phoenix · targets/codex/skills/testing/SKILL.md · Write or repair Elixir tests with ExUnit, sandbox isolation, async; Use
git:20260724.daea640 · audit A · 569 stars
testing SKILL.md skill
oliver-kriska/claude-elixir-phoenix · plugins/elixir-phoenix/skills/testing/SKILL.md · Write or repair Elixir tests with ExUnit, sandbox isolation, async reliability, Mox, ExMachina, and LiveViewTest. Use…
git:20260724.daea640 · audit A · 569 stars
testing SKILL.md skill
oliver-kriska/claude-elixir-phoenix · targets/amp/skills/testing/SKILL.md · Write or repair Elixir tests with ExUnit, sandbox isolation, async reliability,
git:20260724.daea640 · audit A · 569 stars
testing Cursor rule
autonomous-ai/lampos · .cursor/rules/testing.mdc · Testing conventions
git:20260324.7a91f3b · audit A · 483 stars

Browse by kind, by grade A, or by owner.