ワンクリックで
jest-rtl-testing
Use when writing, reviewing, or debugging Jest + React Testing Library tests, before writing test code or when tests fail
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when writing, reviewing, or debugging Jest + React Testing Library tests, before writing test code or when tests fail
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | jest-rtl-testing |
| description | Use when writing, reviewing, or debugging Jest + React Testing Library tests, before writing test code or when tests fail |
Based on Testing Library's core principles and Kent C. Dodds' best practices guidance for writing user-centric tests.
Core Principle: Tests should interact with your application the same way users do, not test implementation details.
Before writing any test, you MUST:
AGENTS.md and read its Testing sectionAGENTS.md rules with highest priority when they existUse this skill when:
Don't use when:
⚠️ Performance Warning: getByRole can be slow on large views (ref). For complex UIs with many elements, prefer getByLabelText or getByText first.
Priority Order:
Query types:
getBy* - element must exist (throws if not found)queryBy* - expect absence (returns null)findBy* - async wait (returns Promise)Details: references/query-cheatsheet.md
AGENTS.md and follow testing rules with highest priority.findBy* for appearance, waitForElementToBeRemoved for disappearance.@testing-library/user-event over fireEvent.Examples and patterns: references/common-patterns.md
screen.debug() to inspect the DOM.getBy* vs queryBy* vs findBy*).screen.logTestingPlaygroundURL() to discover better queries.Last Updated: 2026-02-10