Releases: callstack/react-native-testing-library
Releases · callstack/react-native-testing-library
v13.0.0-rc.0
13.0.0-rc.0 (2024-12-13)
Important Changes
- Enabled concurrent rendering by default
- Automatically extend Jest matchers, you no longer need to import
@testing-library/react-native/extend-expect
. Importing@testing-library/react-native
will be enough. - remove host component name auto-detection. Test should run faster.
Removed
*ByA11yState
queries have been removed use*ByRole
queries ortoHaveAccessibilityState
matcher instead*ByA11yValue
queries have been removed use*ByRole
queries ortoHaveAccessibleValue
matcher instead- Removed support for React 16 & 17. Supports React 18 and 19.
- Removed
debug.shallow
method - Removed
@testing-library/react-native
Jest preset (useful for React 17). Just use regularreact-native
Jest preset.
Other changes (should have no visible effects):
- new implementation of
flushMicrotaskQueue
- slightly different way to calculate a11y labels
- uses React's implementation of
act
instead of React Test Renderer's
v12.9.0
v14.0.0-alpha.0
14.0.0-alpha.0 (2024-11-20)
This is the early alpha of RNTL v14 using universal-test-renderer
instead of deprecated react-test-renderer
.
✨ Features
- transition to
universal-test-renderer
test renderer (c321efd)
v13.0.0-beta.0
13.0.0-beta.0 (2024-11-12)
Removed:
*ByA11yState
queries have been removed use*ByRole
queries ortoHaveAccessibilityState
matcher instead*ByA11yValue
queries have been removed use*ByRole
queries ortoHaveAccessibleValue
matcher instead- Removed support for React 16 & 17. Supports React 18 and 19.
- Removed
debug.shallow
method - Removed
@testing-library/react-native
Jest preset (useful for React 17). Just use regularreact-native
Jest preset.
Important Changes:
- Enabled concurrent rendering by default
- Automatically extend Jest matchers, you no longer need to import
@testing-library/react-native/extend-expect
. Importing@testing-library/react-native
will be enough. - remove host component name auto-detection. Test should run faster.
Other changes (should have no visible effects):
- new implementation of
flushMicrotaskQueue
- slightly different way to calculate a11y labels
- uses React's implementation of
act
instead of React Test Renderer's
No externally visible changes since 13.0.0.-alpha.2.
v13.0.0-alpha.2
13.0.0-alpha.2 (2024-11-07)
✂️ Removed
- remove Jest preset by @mdjastrzebski in #1700
Full Changelog: v13.0.0-alpha.1...v13.0.0-alpha.2
v13.0.0-alpha.1
v12.8.1
v13.0.0-alpha.0
13.0.0-alpha.0 (2024-10-25)
✨ Features
- automatically extend Jest matchers (#1684) (7455b21)
- enable concurrent rendering by default (#1692) (383c241)
🪚 Removed functionalities
- remove support for older version of React Native (pre 0.71.0) and React (pre 18.2.0)
- remove deprecated
*ByAccessibilityState
, &*ByAccessibilityValue
queries - remove
debug.shallow
🐨 Other
- switch to modern
flushMicroTasks
v12.8.0
v12.7.2 (2024-09-12)
What's Changed
Features
- feat: simulated native TextInput state by @mdjastrzebski in #1653
- feat: support Switch checked state by @mdjastrzebski in #1657
- feat: support
Image
withalt
prop as label by @mdjastrzebski in #1665
Bug Fixes
- fix: use native state across the queries and matchers by @mdjastrzebski in #1667
Other
- refactor: accessibility handling by @mdjastrzebski in #1658
- refactor: scroll view native state by @mdjastrzebski in #1661
- refactor: simplify native state management by @mdjastrzebski in #1662
- chore(deps-dev): bump @callstack/eslint-config from 14.2.0 to 15.0.0 by @dependabot in #1650
New Contributors
- @amandeepmittal made their first contribution in #1660
Full Changelog: v12.6.1...v12.7.1