Releases: callstack/react-native-testing-library
Releases · callstack/react-native-testing-library
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
v11.3.0
What's Changed
Features
- feature: configure API from DTL by @mdjastrzebski in #1141
Fixes
- fix: *ByRole queries to match their own text text content by @AugustinLF in #1139
- fix: update render flow type with new option unstable_validateStringsRenderedWithinText by @pierrezimmermannbam in #1179
- Ignore fake timers by @Niryo in #1169
Other
- Eslint plugin docs typos by @CodingItWrong in #1157
- docs: add typedefs for queries by @mdjastrzebski in #1175
New Contributors 👏
Full Changelog: v11.2.0...v11.3.0
v11.2.0
What's Changed
New Features
- Support for
name
option in*ByRole
queries by @AugustinLF and @kiranjd #1127 isInaccessible
API (compat. with React Testing Library) by @mdjastrzebski #1128- [experimental] Emulate error when rendering string text outside of
Text
component by @pierrezimmermannbam #1070
Chores
- Reduce number of
act()
warnings when using React 18 by @AugustinLF #1131 - Automated testing against React 17 by @AugustinLF in #1115
- Docs: document render options by @mdjastrzebski #1129
New Contributors 👏🏻
Full Changelog: v11.1.0...v11.2.0
v11.1.0
What's Changed
- docs: v11 migration changelog link by @mdjastrzebski in #1023
- refactor: update example apps by @mdjastrzebski in #1024
- feature: basic example app by @mdjastrzebski in #1025
- Update README.md by @heecheolman in #1036
- chore: upgrade docusaurus to v2.0.1 by @okwasniewski in #1049
- chore: update deps to expo 46 by @mdjastrzebski in #1059
- chore: disable test examples workflow on main merge, add GH action for test examples by @mdjastrzebski in #1058
- docs: troubleshooting guilde by @mdjastrzebski in #1065
- chore: update troubleshooting guide with typical error messages by @mdjastrzebski in #1073
- Update API.md by @AlanWen2016 in #1075
- feature: export options types and renderHook result type by @mdjastrzebski in #1091
- chore: remove cp-cli dep by @mdjastrzebski in #1106
- docs: Changed targes in line 44 to targets. by @Gabiveu1574 in #1108
- chore: optional jest peer dep by @mdjastrzebski in #1101
- chore: remove and add again
conventional-changelog-cli
to update deep deps by @mdjastrzebski in #1109 - fix: prevent non editable textinputs from being updated through getByTestID by @pierrezimmermannbam in #1092
- chore: add test to ensure it is possible to trigger native event by @AugustinLF in #1114
New Contributors
- @heecheolman made their first contribution in #1036
- @okwasniewski made their first contribution in #1049
- @AlanWen2016 made their first contribution in #1075
- @Gabiveu1574 made their first contribution in #1108
Full Changelog: v11.0.0...v11.1.0
v11.0.0
What's Changed
- chore(breaking): update Jest to 28 by @mdjastrzebski in #1008
- refactor(breaking): remove legacy wait for options support by @mdjastrzebski in #1018
- refactor(breaking): remove
byA11yStates
queries by @mdjastrzebski in #1015 - chore: update react-native to 0.69.1 by @mdjastrzebski in #1010
- chore: update deps @types for react/react-native by @mdjastrzebski in #1013
- feat: Trigger non-touch events on box-none targets by @dcalhoun in #906
- docs: create document describing act function and related errors by @mdjastrzebski in #969
- chore: Organise a11y queries by predicate by @MattAgn in #977
- chore: reenable skipped byText tests by @mdjastrzebski in #1017
Full Changelog: v10.1.1...v11.0.0
Migration Guide
See the RNTL v11 migration guide
v11.0.0-rc.0
What's Changed
- chore(breaking): update Jest to 28 by @mdjastrzebski in #1008
- refactor(breaking): remove legacy wait for options support by @mdjastrzebski in #1018
- refactor(breaking): remove
byA11yStates
queries by @mdjastrzebski in #1015 - chore: update react-native to 0.69.1 by @mdjastrzebski in #1010
- chore: update deps @types for react/react-native by @mdjastrzebski in #1013
- feat: Trigger non-touch events on box-none targets by @dcalhoun in #906
- docs: create document describing act function and related errors by @mdjastrzebski in #969
- chore: Organise a11y queries by predicate by @MattAgn in #977
- chore: reenable skipped byText tests by @mdjastrzebski in #1017
Full Changelog: v10.1.1...v11.0.0-rc.0