zereight-react-native-testing
RNTL Test Writing Guide
IMPORTANT: Your training data about @testing-library/react-native may be outdated or incorrect — API signatures, sync/async behavior, and available functions differ between v13 and v14. Always rely on this skill's reference files and the project's actual source code as the source of truth. Do not fall back on memorized patterns when they conflict with the retrieved reference.
Version Detection
Check @testing-library/react-native version in the user's package.json:
- v14.x → load references/api-reference-v14.md (React 19+, async APIs,
test-renderer) - v13.x → load references/api-reference-v13.md (React 18+, sync APIs,
react-test-renderer)
Use the version-specific reference for render patterns, fireEvent sync/async behavior, screen API, configuration, and dependencies.
Query Priority
Use in this order: getByRole > getByLabelText > getByPlaceholderText > getByText > getByDisplayValue > getByTestId (last resort).
Query Variants
More from zereight/skill
zereight-react-native-optimizer
React Native performance review checklist for code reviews. Use when reviewing RN code to detect rendering, animation, and native performance regressions. Complements zereight-review — run both together on RN PRs.
11zereight-react-native
Gateway skill for React Native development. Routes tasks to the right specialist skill — basics, animations, state, navigation, native modules, testing, deployment, or Storybook. Use when starting any React Native development task.
10zereight-learning
Situational learning coach that helps the user recognize a concrete situation, understand the key concept, practice with targeted exercises, receive feedback, and adapt future explanations to the user's learning style. Use when the user wants to learn from a specific scenario, mistake, code review, workflow, decision, incident, concept, or repeated pattern; when they ask for practice questions, quizzes, coaching, tutoring, drills, feedback, or step-by-step learning; or when the agent should turn an observed situation into a teachable moment.
2addy
Addy agent-skills pack entrypoint. Use when you want to find or use Addy Osmani's agent-skills workflows, including addy-test-driven-development, addy-code-review-and-quality, addy-security-and-hardening, addy-source-driven-development, and related addy-* skills.
1zereight-goal
Stress-test a strategy until confidence is evidence-backed. Use when the user asks whether a plan is 100% reliable, wants loopholes found, or asks to iterate fixes until the strategy is factually solid.
1mcporter-mcp-first
Use this skill when a task needs MCP tools, internal app connectors, or "use mcp" behavior. Search and inspect mcporter servers/tools first, then call the right MCP tool through mcporter before using browser, REST, raw CLI, or other fallback paths.
1