Releases: callstack/react-native-testing-library
Releases · callstack/react-native-testing-library
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
v11.5.0
Features
includeHiddenElements
query option to include/exclude elements hidden by accessibility by @MattAgn in #1064value
option for*ByRole
query by @mdjastrzebski in #1210
Bug fixes
*ByText
is now able to match text across nestedText
components by @mdjastrzebski in #1222- If your tests relied on undocumented behavior of
*ByText
queries only matching non-nested text content, then you might need to update them, e.g. by using{ exact: false }
query option.
- If your tests relied on undocumented behavior of
Other
- improved naming
inInaccessible
helper ->isHiddenFromAccessibility
(old name still available as RTL-compat alias) by @mdjastrzebski in #1211 hidden
query option alias forincludeHiddenElements
by @MattAgn in #1220
Full Changelog: v11.4.0...v11.5.0
v11.4.0
What's Changed
Features
- Debug options by @pierrezimmermannbam in #1160
- Query by role and accessibilityState and improve ByRole query errors by @AugustinLF in #1161
- Add queryOptions to labelText and hintText by @ShaswatPrabhat in #1193
Bug fixes
- fix: *ByA11yState default value false value for busy, disabled & selected state by @mdjastrzebski in #1166
- fix: do not use a real timeout in waitfor when using fake timers by @pierrezimmermannbam in #1177
Other
- docs: testing environment by @mdjastrzebski in #1195
- chore: add codecov by @jaworek in #1203
New Contributors 👏
- @ShaswatPrabhat made their first contribution in #1193
- @jaworek made their first contribution in #1203
Full Changelog: v11.3.0...v11.4.0