mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
1.2 KiB
1.2 KiB
API Overview
React Native Testing Library consists of following APIs:
renderfunction - render your UI components for testing purposesscreenobject - access rendered UI:- Jest matchers - validate assumptions about your UI
- User Event - simulate common user interactions like
pressortypein a realistic way - Fire Event - simulate any component event in a simplified way purposes
- Misc APIs:
renderHookfunction - render hooks for testing- Async utils:
findBy*queries,waitFor,waitForElementToBeRemoved - Configuration:
configure,resetToDefaults - Accessibility: accessible name,
isHiddenFromAccessibility - Other:
within,act,cleanup