Releases: callstack/react-native-testing-library
Releases · callstack/react-native-testing-library
v12.1.0
What's Changed
Improvements
- feat: Render element tree in query error messages by @stevehanson in #1378
Bugfixes
- Proper stack trace for findBy* and findAllBy* queries by @mdjastrzebski in #1394
New Contributors
- @stevehanson made their first contributions in #1377, #1378 and #1390 👏
Chores, docs, deps, etc
- Fix broken link in contributing.md by @stevehanson in #1377
- chore: update deps 2023-04-04 by @mdjastrzebski in #1380
- Fix typo in "derived" in v12 migration guide by @CodingItWrong in #1376
- chore: fix migration guide role prop naming by @mdjastrzebski in #1382
- fix: "Edit this Page" link in docs results in 404 by @stevehanson in #1390
- refactor: remove stale tests by @mdjastrzebski in #1392
- chore: experiments app by @mdjastrzebski in #1391
Full Changelog: v12.0.1...v12.1.0
v12.0.1
What's Changed
Bugfixes
- Flush all pending microtasks and updates before returning from waitFor by @jsnajdr in #1366
- Render host component name detection tree inside act to avoid timer leaks by @jsnajdr in #1371
New Contributors 👏
Full Changelog: v12.0.0...v12.0.1
v12.0.0
What's Changed
We have prepared v12 migration guide.
Breaking changes
- All queries exclude elements hidden from accessibility by default
*ByRole
queries now return only accessibility elements*ByText
,*ByDisplayValue
,*ByPlaceholderText
queries now return host elementscontainer
API has been renamed toUNSAFE_root
, added saferoot
API
Full Changelog
v11.5.4
What's Changed
Bug fixes
- fix: disable container deprecation warning triggered by rest destructuring operator on
render
result by @mdjastrzebski in #1362
Full Changelog: v11.5.3...v11.5.4
v11.5.3
What's Changed
Bugfixes
- fix type issues for
AccessibilityState
when usingskipLibCheck: false
resulting from migration from@types/react-native
to internalreact-native
types (#1355) by @mdjastrzebski in #1361
Full Changelog: v11.5.2...v11.5.3
v12.0.0 RC 2
What's Changed (v12 major release)
We have prepared v12 migration guide.
Breaking changes
- All queries exclude elements hidden from accessibility by default
*ByRole
queries now return only accessibility elements*ByText
,*ByDisplayValue
,*ByPlaceholderText
queries now return host elementscontainer
API has been renamed toUNSAFE_root
, added saferoot
API
Full Changelog
Changes from v12.0.0 RC 1 to RC 2
Fixes
- fix: resolve AccessibilityState import issue due to types migration to
react-native
package by @mdjastrzebski in #1355
RC 2 Changelog
v12.0.0 RC 1
What's Changed (v12 major release)
We have prepared v12 migration guide.
Breaking changes
- All queries exclude elements hidden from accessibility by default
*ByRole
queries now return only accessibility elements*ByText
,*ByDisplayValue
,*ByPlaceholderText
queries now return host elementscontainer
API has been renamed toUNSAFE_root
, added saferoot
API
Full Changelog
Changes from v12.0.0 RC 0 to RC 1
Fixes
- fix: container enumeration by @mdjastrzebski in #1352
Others
- docs tweaks
RC 1 Changelog
v12.0.0 RC 0
What's Changed
We have prepared v12 migration guide.
Breaking changes
- All queries exclude elements hidden from accessibility by default
*ByRole
queries now return only accessibility elements*ByText
,*ByDisplayValue
,*ByPlaceholderText
queries now return host elementscontainer
API has been renamed toUNSAFE_root
, added saferoot
API
Full Changelog
https://github.com/callstack/react-native-testing-library/compare/v11.5.2...v11.5.2...v12.0.0-rc.0
v11.5.2
What's Changed
Fixes
- fix: "Can't access .root on unmounted test renderer" error when using explict
act
wrapper aroundfireEvent
and other RNTL functions by @pierrezimmermannbam and @mdjastrzebski in #1306
Other
- chore: deprecate some a11y queries by @mdjastrzebski in #1226
Full Changelog: v11.5.1...v11.5.2
v11.5.1
What's Changed
Improvements
Fixes
- fix: TS typing to support
await act
by @mdjastrzebski in #1293
New Contributors
Full Changelog: v11.5.0...v11.5.1