Migration to React Native Testing Library version 13 from version 12.x.
This version supports only React 19 and corresponding React Native versions. If you use React 18 or 19, please use latest of v12 versions.
[Note: at the moment there is no React Native for React 19, and React 19 is still in beta, so we use React 18.3 for the time being].
This deprecated query has been removed as is typically too general to give meaningful results. Use one of the following options:
*ByRole
query with relevant state options: disabled
, selected
, checked
, expanded
and busy
toBeEnabled()
/ toBeDisabled()
toBeChecked()
/ toBePartiallyChecked()
toBeSelected()
toBeExpanded()
/ toBeCollapsed()
toBeBusy()
This deprecated query has been removed as is typically too general to give meaningful results. Use one of the following options:
toHaveAccessibilityValue()
Jest matcher to check the state of element found using some other query*ByRole
query with value
optiondebug.shallow
For a time being we didn't support shallow rendering. Now we are removing the last remains of it: debug.shallow()
. If you are interested in shallow rendering see here.
flushMicroTasks
internal methodThis should not break any tests.
https://github.com/callstack/react-native-testing-library/compare/v12.5.2...v13.0.0