Releases: callstack/react-native-testing-library
Releases 路 callstack/react-native-testing-library
v12.3.1
What's Changed
Features
Fixes
- fix: properly manage IS_REACT_ACT_ENVIRONMENT in UserEvent by @pierrezimmermannbam in #1491
New Contributors
- @marcinkornek made their first contribution in #1487
- @meatnordrink made their first contribution in #1494
Full Changelog: v12.3.0...v12.3.1
v12.3.0
Features
-
ARIA props (
role
&aria-*
) support:- feat: support aria-hidden prop by @mdjastrzebski in #1474
- feat: support
role
prop by @mdjastrzebski in #1476 - feat: support
aria-label
andaria-labelledby
props by @mdjastrzebski in #1475 - feat:
aria-*
state props by @mdjastrzebski in #1478 - feat:
aria-modal
support by @mdjastrzebski in #1481 - feat:
aria-value*
props support by @mdjastrzebski in #1480
-
Jest Native matcher migration to RNTL (work in progress):
- feature: Jest matchers core by @mdjastrzebski in #1454
- feat: add Jest matchers utils by @mdjastrzebski in #1464
- feat:
toBeEmptyElement
matcher by @kyawthura-gg in #1462 - feat:
toHaveDisplayValue
matcher by @mdjastrzebski in #1463 - feat:
toHaveTextContent()
matcher by @mdjastrzebski in #1461 - feat:
toBeVisible
matcher by @thiagobrez in #1465 - feat:
toBeDisabled
matcher by @jaworek in #1469 - feat:
toHaveProp
matcher by @AntoineThibi in #1477 - feat:
toBeChecked
&toBePartiallyChecked
matcher by @kyawthura-gg in #1479
Note: Jest matchers are work in progress and haven't yet been officially released. You can track progress of this initiative in #1468.
New Contributors
- @M-Tilley-SA made their first contribution in #1460
- @kyawthura-gg made their first contribution in #1462
- @friederbluemle made their first contribution in #1470
- @thiagobrez made their first contribution in #1465
- @AntoineThibi made their first contribution in #1477
Full Changelog: v12.2.2...v12.3.0
v12.2.2
What's Changed
Fixes
- remove unintended folders from NPM package (website, examples, etc) due to Yarn confusion by @mdjastrzebski in #1453
Full Changelog: v12.2.1...v12.2.2
v12.2.1
What's Changed
Improvements
- User Event
clear()
for clearing content of TextInputs by @mdjastrzebski in #1440
Under the hood
- refactor: type all queries to return host components by @pierrezimmermannbam in #1426
Full Changelog: v12.2.0...v12.2.1
v12.2.0
What's Changed
Features
- User Event API:
press()
,type()
- #1386, #1396, #1410 by @pierrezimmermannbam and @mdjastrzebski
Full Changelog: v12.1.3...v12.2.0
v12.1.3
Fixes
- fix: correct type inference for props when initialProps is used by @pierrezimmermannbam in #1421
- fix: skip configureHostComponentNamesIfNeeded when calling renderHook by @KrastanD in #1425
- fix: fixing TypeScript accessibility issue for custom render function by @FelipeESchmidt in #1428
Improvements
- feat: add autocomplete for fireEvent event names by @pierrezimmermannbam in #1434
Refactors, Docs, Chores, etc
- refactor: flush microtask queue implementation by @mdjastrzebski in #1374
- Fix a11y typo by @CodingItWrong in #1408
- chore: remove conventional-changelog-cli package by @mdjastrzebski in #1419
- Correct second test description by @Abdelalim-dev in #1424
New Contributors 馃憦
- @Abdelalim-dev made their first contribution in #1424
- @KrastanD made their first contribution in #1425
- @FelipeESchmidt made their first contribution in #1428
Full Changelog: v12.1.2...v12.1.3
v12.1.2
What's Changed
Fixes
- fix: pointer events evaluation by @mdjastrzebski in #1395
- fix: non-editable wrapped TextInput events by @TMaszko in #1385
- fix: support
onXxx
event name for TextInput event checks by @mdjastrzebski in #1404
Docs, Chores, etc
- docs: add config example for pnpm by @yjose in #1400
- chore: move/remove deprecation functions by @mdjastrzebski in #1402
- refactor: component tree dead code by @mdjastrzebski in #1403
- refactor:
fireEvent
cleanup by @mdjastrzebski in #1401
New Contributors
Full Changelog: v12.1.1...v12.1.2
v12.1.1
What's Changed
Fixes
- fix: remove incorrect dependencies by @mdjastrzebski in #1399
Full Changelog: v12.1.0...v12.1.1
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