skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
maikotrindade/awesome-react-native-skills57 installs

react-native-testing

Deep React Native Testing Library (RNTL) reference — v13 (React 18 sync) and v14 (React 19 async), queries, userEvent, matchers, anti-patterns.

How do I install this agent skill?

npx skills add https://github.com/maikotrindade/awesome-react-native-skills --skill react-native-testing
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The react-native-testing skill is a comprehensive documentation resource providing deep API references and best practices for the React Native Testing Library (RNTL) versions 13 and 14. It contains no executable scripts, commands, or automation logic, functioning solely as an informational guide for developers.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

React Native Testing Library

Deep API reference for @testing-library/react-native v13 and v14.

Scope: unit + component tests with Jest + RNTL. For end-to-end UI flows on real devices/simulators, use Maestro — declarative YAML flows, no code, runs against the built app. RNTL and Maestro are complementary, not alternatives.

IMPORTANT: API signatures, sync/async behavior, and available functions differ between v13 and v14. Always check the project's package.json and load the matching version reference rather than relying on memorized patterns.

Version Detection

Check @testing-library/react-native in package.json:

Core References

TopicDescriptionReference
Core patternsQuery priority, render/screen, userEvent vs fireEvent, waitFor, 11 core rulescore-patterns
v13 API (React 18)Sync render, full method tables, fireEvent sync, React 19 compat shimsreference-v13-api
v14 API (React 19)Async render, await-based APIs, removed APIs, v13→v14 migration codemodsreference-v14-api
Anti-patternsWrong queries, waitFor misuse, unnecessary act, destructuring, missing awaitbest-practices-anti-patterns

Key Recommendations

  • Always use screen for queries — never destructure from render()
  • getByRole first with { name: '...' } option (most accessibility-aware)
  • findBy* for async elements — not waitFor + getBy*
  • userEvent over fireEvent — more realistic interaction simulation
  • queryBy* only for non-existence assertions (.not.toBeOnTheScreen())
  • v14: always await every API (including render, fireEvent, act)

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/maikotrindade/awesome-react-native-skills/react-native-testing">View react-native-testing on skillZs</a>