Releases: callstack/react-native-testing-library
Releases · callstack/react-native-testing-library
v12.4.3
v12.4.2
What's Changed
Improvements
- feat: add option to pass
contentSize
andlayoutMeasurement
when callingscrollTo
by @j-piasecki in #1543
Other
- chore: remove renovate by @mdjastrzebski in #1539
- chore: add release it by @mdjastrzebski in #1546
New Contributors
- @j-piasecki made their first contribution in #1543
Full Changelog: v12.4.1...v12.4.2
v12.4.1
What's Changed
New things
- RFC/feat: default accessibility roles by @mdjastrzebski in #1490
Fixes
- chore: fix extend-expect.d.ts types by internalizing them by @mdjastrzebski in #1536
- fix: matcher Jest extensions by @mdjastrzebski in #1537
- fix: user event add target prop by @mdjastrzebski in #1538
Other
- chore: update & check example packages by @mdjastrzebski in #1528
- docs: spell-check some docs by @mdjastrzebski in #1529
- docs: rewrite How should I query? guide by @mdjastrzebski in #1531
- docs: remove beta status for User Event by @mdjastrzebski in #1532
- chore: deps update 2023-11-27 by @mdjastrzebski in #1533
Full Changelog: v12.4.0...v12.4.1
v12.4.0
What's Changed
Features
- Built-in Jest matchers
Contributors for this feature 👏👏👏
toHaveTextContent
matcher #1461 by @mdjastrzebskitoBeEmptyElement
matcher #1462 by @kyawthura-ggtoHaveDisplayValue
matcher #1463 by @jaworek & @mdjastrzebskitoBeVisible
matcher #1465 by @thiagobreztoBeEnabled
&toBeDisabled
matchers #1469 by @jaworektoHaveProp
matcher #1477 by @AntoineThibitoBeChecked
&toBePartiallyChecked
matchers #1479 by @kyawthura-ggtoHaveStyle
matcher #1487 by @marcinkornektoBeSelected
matcher #1488 by @AntoineThibitoBeBusy
matcher #1493 by @hduprattoContainElement
matcher #1495 by @siepratoHaveAccessibilityValue
matcher #1496 by @tarunrajputtoBeExpanded
&toBeCollapsed
matchers #1497 by @siepratoHaveAccessibleName
matcher #1509 by @anishamalde- Special thanks to @pierrezimmermannbam for helping with code reviews!
Full Changelog: v12.3.3...v12.4.0
v12.3.3
What's Changed
Features:
- feat: toHaveAccessibleName matcher by @anishamalde in #1509 (not yet public, will be exposed publically in v12.4.0)
Fixes
- fix: change broken hyperlink in README.md by @jovanimal in #1520
Other improvements & chores
- docs: Jest matchers docs by @mdjastrzebski in #1506
- chore: modern yarn (4.0) by @mdjastrzebski in #1517
- chore: enable Yarn 4 on CI by @mdjastrzebski in #1525
- chore: expose Jest Native exports by @mdjastrzebski in #1522
- Dependabot/npm and yarn/callstack/eslint config 14.0.0 by @mdjastrzebski in #1526
New Contributors
- @jovanimal made their first contribution in #1520
- @anishamalde made their first contribution in #1509
Full Changelog: v12.3.2...v12.3.3
v12.3.2
What's Changed
Improvements:
- Adds typedefs for pure by @chriserickson in #1516
New Contributors
- @chriserickson made their first contribution in #1516
Full Changelog: v12.3.1...v12.3.2
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