Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: toHaveTextContent() matcher #1461

Merged
merged 2 commits into from
Aug 24, 2023

Conversation

mdjastrzebski
Copy link
Member

@mdjastrzebski mdjastrzebski commented Aug 19, 2023

Summary

Implement toHaveTextContent() Jest matcher, with altered API - pls review below section and state your opinion about this change.

API change proposal (decision to make)

Jest DOM & legacy Jest Native matchers had following characteristics:

  1. Both did perform partial match by default. The only way to perform exact match was to pay Regex including ^/$ start of string/end of string characters.
  2. (Jest DOM only) The only option was normalizeWhitespace: boolean = true' which performed default normalization (collapse whitespace). Jest Native did not allow options.

This PR proposes following changes

  1. Perform exact match by default. Partial match can be achieved using { exact: false } option or by using basic regex.
  2. Support the same TextMatchOptions (exact + normalizer) as most of our queries.

Both of these changes would bring this matcher inline with getByText query, which uses exact match as default, and allows TextMatchOptions. I would argue that internal RNTL consistency is a more important to our users than replicating internal inconsistencies of RTL/Jest DOM matcher.

This PR change partially contradicts with our long-standing goal for making API maximally compatible with RTL's API. We already did that in case of making all queries respect a11y hidden attributes (where in RTL only *ByRole does it). I would suggest reinterpreting it in a somewhat more flexible way, where we would make API the same if it's good, but if it has some problems, we would fix it, while also allowing user to achieve RTL behavior using some option(s).

Test plan

Added relevant unit tests.

@codecov
Copy link

codecov bot commented Aug 19, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01% 🎉

Comparison is base (344e9b3) 97.69% compared to head (9343602) 97.71%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1461      +/-   ##
==========================================
+ Coverage   97.69%   97.71%   +0.01%     
==========================================
  Files          78       79       +1     
  Lines        4603     4640      +37     
  Branches      670      675       +5     
==========================================
+ Hits         4497     4534      +37     
  Misses        106      106              
Files Changed Coverage Δ
src/helpers/text-content.ts 100.00% <ø> (ø)
src/helpers/matchers/matchTextContent.ts 100.00% <100.00%> (ø)
src/matchers/extend-expect.ts 100.00% <100.00%> (ø)
src/matchers/to-have-text-content.tsx 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mdjastrzebski mdjastrzebski changed the title feat: toHaveTextContent() matcher [WIP] feat: toHaveTextContent() matcher [WIP] Aug 19, 2023
@mdjastrzebski mdjastrzebski changed the title feat: toHaveTextContent() matcher [WIP] feat: toHaveTextContent() matcher Aug 19, 2023
@mdjastrzebski mdjastrzebski force-pushed the feature/jest-to-have-text-content branch from 1b91fed to 2b77f5c Compare August 19, 2023 22:23
Copy link
Collaborator

@pierrezimmermannbam pierrezimmermannbam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! I just have a question, I understood that we would start by exposing jest native matchers prefixed with legacy to ease migration, is it still the plan? If so shouldn't we start with that?

@mdjastrzebski
Copy link
Member Author

@pierrezimmermannbam re legacy matchers. Yes that is still the plan. I plan to do it in the @testing-library/jest-native matchers as optional import: import '@testining-library/jest-native/legacy-extend-expect instead of typical import '@testining-library/jest-native/extend-expect.

That way it would be still available for a very long time but we would not have to manage it in RNTL repo.

@mdjastrzebski mdjastrzebski force-pushed the feature/jest-to-have-text-content branch from 2b77f5c to 19f108e Compare August 22, 2023 10:15
chore: fix typescript, remove legacy jest-native tests
@mdjastrzebski mdjastrzebski force-pushed the feature/jest-to-have-text-content branch from 19f108e to a84542e Compare August 24, 2023 20:14
@mdjastrzebski mdjastrzebski merged commit b428cc5 into main Aug 24, 2023
@mdjastrzebski mdjastrzebski deleted the feature/jest-to-have-text-content branch August 24, 2023 20:29
@mdjastrzebski
Copy link
Member Author

🎉 Release in version: v12.4.0

renovate bot referenced this pull request in valora-inc/wallet Jan 8, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@testing-library/jest-native](https://github.com/testing-library/jest-native)
| [`^5.4.2` ->
`^5.4.3`](https://renovatebot.com/diffs/npm/@testing-library%2fjest-native/5.4.2/5.4.3)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@testing-library%2fjest-native/5.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@testing-library%2fjest-native/5.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@testing-library%2fjest-native/5.4.2/5.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@testing-library%2fjest-native/5.4.2/5.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@testing-library/react-native](https://callstack.github.io/react-native-testing-library)
([source](https://github.com/callstack/react-native-testing-library))
| [`^12.2.2` ->
`^12.4.3`](https://renovatebot.com/diffs/npm/@testing-library%2freact-native/12.2.2/12.4.3)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@testing-library%2freact-native/12.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@testing-library%2freact-native/12.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@testing-library%2freact-native/12.2.2/12.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@testing-library%2freact-native/12.2.2/12.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>testing-library/jest-native
(@&#8203;testing-library/jest-native)</summary>

###
[`v5.4.3`](https://github.com/testing-library/jest-native/compare/v5.4.2...v5.4.3)

[Compare
Source](https://github.com/testing-library/jest-native/compare/v5.4.2...v5.4.3)

</details>

<details>
<summary>callstack/react-native-testing-library
(@&#8203;testing-library/react-native)</summary>

###
[`v12.4.3`](https://github.com/callstack/react-native-testing-library/releases/tag/v12.4.3)

[Compare
Source](https://github.com/callstack/react-native-testing-library/compare/v12.4.2...v12.4.3)

#### Other

- docs: jsdoc for Jest matchers by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1548](https://github.com/callstack/react-native-testing-library/pull/1548)

**Full Changelog**:
callstack/react-native-testing-library@v12.4.2...v12.4.3

###
[`v12.4.2`](https://github.com/callstack/react-native-testing-library/releases/tag/v12.4.2)

[Compare
Source](https://github.com/callstack/react-native-testing-library/compare/v12.4.1...v12.4.2)

#### What's Changed

##### Improvements

- feat: add option to pass `contentSize` and `layoutMeasurement` when
calling `scrollTo` by
[@&#8203;j-piasecki](https://github.com/j-piasecki) in
[https://github.com/callstack/react-native-testing-library/pull/1543](https://github.com/callstack/react-native-testing-library/pull/1543)

##### Other

- chore: remove renovate by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1539](https://github.com/callstack/react-native-testing-library/pull/1539)
- chore: add release it by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1546](https://github.com/callstack/react-native-testing-library/pull/1546)

#### New Contributors

- [@&#8203;j-piasecki](https://github.com/j-piasecki) made their first
contribution in
[https://github.com/callstack/react-native-testing-library/pull/1543](https://github.com/callstack/react-native-testing-library/pull/1543)

**Full Changelog**:
callstack/react-native-testing-library@v12.4.1...v12.4.2

###
[`v12.4.1`](https://github.com/callstack/react-native-testing-library/releases/tag/v12.4.1)

[Compare
Source](https://github.com/callstack/react-native-testing-library/compare/v12.4.0...v12.4.1)

#### What's Changed

##### New things

- RFC/feat: default accessibility roles by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1490](https://github.com/callstack/react-native-testing-library/pull/1490)

##### Fixes

- chore: fix extend-expect.d.ts types by internalizing them by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1536](https://github.com/callstack/react-native-testing-library/pull/1536)
- fix: matcher Jest extensions by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1537](https://github.com/callstack/react-native-testing-library/pull/1537)
- fix: user event add target prop by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1538](https://github.com/callstack/react-native-testing-library/pull/1538)

##### Other

- chore: update & check example packages by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1528](https://github.com/callstack/react-native-testing-library/pull/1528)
- docs: spell-check some docs by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1529](https://github.com/callstack/react-native-testing-library/pull/1529)
- docs: rewrite How should I query? guide by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1531](https://github.com/callstack/react-native-testing-library/pull/1531)
- docs: remove beta status for User Event by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1532](https://github.com/callstack/react-native-testing-library/pull/1532)
- chore: deps update 2023-11-27 by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1533](https://github.com/callstack/react-native-testing-library/pull/1533)

**Full Changelog**:
callstack/react-native-testing-library@v12.4.0...v12.4.1

###
[`v12.4.0`](https://github.com/callstack/react-native-testing-library/releases/tag/v12.4.0)

[Compare
Source](https://github.com/callstack/react-native-testing-library/compare/v12.3.3...v12.4.0)

#### What's Changed

### Features

-   Built-in Jest matchers
-
[documentation](https://callstack.github.io/react-native-testing-library/docs/jest-matchers)
- [migration guide from legacy Jest Native
matchers](https://callstack.github.io/react-native-testing-library/docs/migration-jest-native)

### Contributors for this feature 👏👏👏

- `toHaveTextContent` matcher
[#&#8203;1461](https://github.com/callstack/react-native-testing-library/issues/1461)
by [@&#8203;mdjastrzebski](https://github.com/mdjastrzebski)
- `toBeEmptyElement` matcher
[#&#8203;1462](https://github.com/callstack/react-native-testing-library/issues/1462)
by [@&#8203;kyawthura-gg](https://github.com/kyawthura-gg)
- `toHaveDisplayValue` matcher
[#&#8203;1463](https://github.com/callstack/react-native-testing-library/issues/1463)
by [@&#8203;jaworek](https://github.com/jaworek) &
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski)
- `toBeVisible` matcher
[#&#8203;1465](https://github.com/callstack/react-native-testing-library/issues/1465)
by [@&#8203;thiagobrez](https://github.com/thiagobrez)
- `toBeEnabled` & `toBeDisabled` matchers
[#&#8203;1469](https://github.com/callstack/react-native-testing-library/issues/1469)
by [@&#8203;jaworek](https://github.com/jaworek)
- `toHaveProp` matcher
[#&#8203;1477](https://github.com/callstack/react-native-testing-library/issues/1477)
by [@&#8203;AntoineThibi](https://github.com/AntoineThibi)
- `toBeChecked` & `toBePartiallyChecked` matchers
[#&#8203;1479](https://github.com/callstack/react-native-testing-library/issues/1479)
by [@&#8203;kyawthura-gg](https://github.com/kyawthura-gg)
- `toHaveStyle` matcher
[#&#8203;1487](https://github.com/callstack/react-native-testing-library/issues/1487)
by [@&#8203;marcinkornek](https://github.com/marcinkornek)
- `toBeSelected` matcher
[#&#8203;1488](https://github.com/callstack/react-native-testing-library/issues/1488)
by [@&#8203;AntoineThibi](https://github.com/AntoineThibi)
- `toBeBusy` matcher
[#&#8203;1493](https://github.com/callstack/react-native-testing-library/issues/1493)
by [@&#8203;hduprat](https://github.com/hduprat)
- `toContainElement` matcher
[#&#8203;1495](https://github.com/callstack/react-native-testing-library/issues/1495)
by [@&#8203;siepra](https://github.com/siepra)
- `toHaveAccessibilityValue` matcher
[#&#8203;1496](https://github.com/callstack/react-native-testing-library/issues/1496)
by [@&#8203;tarunrajput](https://github.com/tarunrajput)
- `toBeExpanded` & `toBeCollapsed` matchers
[#&#8203;1497](https://github.com/callstack/react-native-testing-library/issues/1497)
by [@&#8203;siepra](https://github.com/siepra)
- `toHaveAccessibleName` matcher
[#&#8203;1509](https://github.com/callstack/react-native-testing-library/issues/1509)
by [@&#8203;anishamalde](https://github.com/anishamalde)
- Special thanks to
[@&#8203;pierrezimmermannbam](https://github.com/pierrezimmermannbam)
for helping with code reviews!

**Full Changelog**:
callstack/react-native-testing-library@v12.3.3...v12.4.0

###
[`v12.3.3`](https://github.com/callstack/react-native-testing-library/releases/tag/v12.3.3)

[Compare
Source](https://github.com/callstack/react-native-testing-library/compare/v12.3.2...v12.3.3)

#### What's Changed

##### Features:

- feat: toHaveAccessibleName matcher by
[@&#8203;anishamalde](https://github.com/anishamalde) in
[https://github.com/callstack/react-native-testing-library/pull/1509](https://github.com/callstack/react-native-testing-library/pull/1509)
(not yet public, will be exposed publically in v12.4.0)

##### Fixes

- fix: change broken hyperlink in README.md by
[@&#8203;jovanimal](https://github.com/jovanimal) in
[https://github.com/callstack/react-native-testing-library/pull/1520](https://github.com/callstack/react-native-testing-library/pull/1520)

##### Other improvements & chores

- docs: Jest matchers docs by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1506](https://github.com/callstack/react-native-testing-library/pull/1506)
- chore: modern yarn (4.0) by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1517](https://github.com/callstack/react-native-testing-library/pull/1517)
- chore: enable Yarn 4 on CI by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1525](https://github.com/callstack/react-native-testing-library/pull/1525)
- chore: expose Jest Native exports by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1522](https://github.com/callstack/react-native-testing-library/pull/1522)
- Dependabot/npm and yarn/callstack/eslint config 14.0.0 by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1526](https://github.com/callstack/react-native-testing-library/pull/1526)

#### New Contributors

- [@&#8203;jovanimal](https://github.com/jovanimal) made their first
contribution in
[https://github.com/callstack/react-native-testing-library/pull/1520](https://github.com/callstack/react-native-testing-library/pull/1520)
- [@&#8203;anishamalde](https://github.com/anishamalde) made their
first contribution in
[https://github.com/callstack/react-native-testing-library/pull/1509](https://github.com/callstack/react-native-testing-library/pull/1509)

**Full Changelog**:
callstack/react-native-testing-library@v12.3.2...v12.3.3

###
[`v12.3.2`](https://github.com/callstack/react-native-testing-library/releases/tag/v12.3.2)

[Compare
Source](https://github.com/callstack/react-native-testing-library/compare/v12.3.1...v12.3.2)

#### What's Changed

Improvements:

- Adds typedefs for pure by
[@&#8203;chriserickson](https://github.com/chriserickson) in
[https://github.com/callstack/react-native-testing-library/pull/1516](https://github.com/callstack/react-native-testing-library/pull/1516)

#### New Contributors

- [@&#8203;chriserickson](https://github.com/chriserickson) made their
first contribution in
[https://github.com/callstack/react-native-testing-library/pull/1516](https://github.com/callstack/react-native-testing-library/pull/1516)

**Full Changelog**:
callstack/react-native-testing-library@v12.3.1...v12.3.2

###
[`v12.3.1`](https://github.com/callstack/react-native-testing-library/releases/tag/v12.3.1)

[Compare
Source](https://github.com/callstack/react-native-testing-library/compare/v12.3.0...v12.3.1)

#### What's Changed

### Features

- UserEvent `scrollBy` [@&#8203;siepra](https://github.com/siepra) in
[https://github.com/callstack/react-native-testing-library/pull/1445](https://github.com/callstack/react-native-testing-library/pull/1445)

### Fixes

- fix: properly manage IS_REACT_ACT_ENVIRONMENT in UserEvent by
[@&#8203;pierrezimmermannbam](https://github.com/pierrezimmermannbam)
in
[https://github.com/callstack/react-native-testing-library/pull/1491](https://github.com/callstack/react-native-testing-library/pull/1491)

#### New Contributors

- [@&#8203;marcinkornek](https://github.com/marcinkornek) made their
first contribution in
[https://github.com/callstack/react-native-testing-library/pull/1487](https://github.com/callstack/react-native-testing-library/pull/1487)
- [@&#8203;meatnordrink](https://github.com/meatnordrink) made their
first contribution in
[https://github.com/callstack/react-native-testing-library/pull/1494](https://github.com/callstack/react-native-testing-library/pull/1494)

**Full Changelog**:
callstack/react-native-testing-library@v12.3.0...v12.3.1

###
[`v12.3.0`](https://github.com/callstack/react-native-testing-library/releases/tag/v12.3.0)

[Compare
Source](https://github.com/callstack/react-native-testing-library/compare/v12.2.2...v12.3.0)

#### Features

-   ARIA props (`role` & `aria-*`) support:
- feat: support aria-hidden prop by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1474](https://github.com/callstack/react-native-testing-library/pull/1474)
- feat: support `role` prop by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1476](https://github.com/callstack/react-native-testing-library/pull/1476)
- feat: support `aria-label` and `aria-labelledby` props by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1475](https://github.com/callstack/react-native-testing-library/pull/1475)
- feat: `aria-*` state props by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1478](https://github.com/callstack/react-native-testing-library/pull/1478)
- feat: `aria-modal` support by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1481](https://github.com/callstack/react-native-testing-library/pull/1481)
- feat: `aria-value*` props support by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1480](https://github.com/callstack/react-native-testing-library/pull/1480)

-   Jest Native matcher migration to RNTL (work in progress):
- feature: Jest matchers core by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1454](https://github.com/callstack/react-native-testing-library/pull/1454)
- feat: add Jest matchers utils by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1464](https://github.com/callstack/react-native-testing-library/pull/1464)
- feat: `toBeEmptyElement` matcher by
[@&#8203;kyawthura-gg](https://github.com/kyawthura-gg) in
[https://github.com/callstack/react-native-testing-library/pull/1462](https://github.com/callstack/react-native-testing-library/pull/1462)
- feat: `toHaveDisplayValue` matcher by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1463](https://github.com/callstack/react-native-testing-library/pull/1463)
- feat: `toHaveTextContent()` matcher by
[@&#8203;mdjastrzebski](https://github.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1461](https://github.com/callstack/react-native-testing-library/pull/1461)
- feat: `toBeVisible` matcher by
[@&#8203;thiagobrez](https://github.com/thiagobrez) in
[https://github.com/callstack/react-native-testing-library/pull/1465](https://github.com/callstack/react-native-testing-library/pull/1465)
- feat: `toBeDisabled` matcher by
[@&#8203;jaworek](https://github.com/jaworek) in
[https://github.com/callstack/react-native-testing-library/pull/1469](https://github.com/callstack/react-native-testing-library/pull/1469)
- feat: `toHaveProp` matcher by
[@&#8203;AntoineThibi](https://github.com/AntoineThibi) in
[https://github.com/callstack/react-native-testing-library/pull/1477](https://github.com/callstack/react-native-testing-library/pull/1477)
- feat: `toBeChecked` & `toBePartiallyChecked` matcher by
[@&#8203;kyawthura-gg](https://github.com/kyawthura-gg) in
[https://github.com/callstack/react-native-testing-library/pull/1479](https://github.com/callstack/react-native-testing-library/pull/1479)

Note: Jest matchers are work in progress and haven't yet been officially
released. You can track progress of this initiative in
[#&#8203;1468](https://github.com/callstack/react-native-testing-library/issues/1468).

#### New Contributors

- [@&#8203;M-Tilley-SA](https://github.com/M-Tilley-SA) made their
first contribution in
[https://github.com/callstack/react-native-testing-library/pull/1460](https://github.com/callstack/react-native-testing-library/pull/1460)
- [@&#8203;kyawthura-gg](https://github.com/kyawthura-gg) made their
first contribution in
[https://github.com/callstack/react-native-testing-library/pull/1462](https://github.com/callstack/react-native-testing-library/pull/1462)
- [@&#8203;friederbluemle](https://github.com/friederbluemle) made
their first contribution in
[https://github.com/callstack/react-native-testing-library/pull/1470](https://github.com/callstack/react-native-testing-library/pull/1470)
- [@&#8203;thiagobrez](https://github.com/thiagobrez) made their first
contribution in
[https://github.com/callstack/react-native-testing-library/pull/1465](https://github.com/callstack/react-native-testing-library/pull/1465)
- [@&#8203;AntoineThibi](https://github.com/AntoineThibi) made their
first contribution in
[https://github.com/callstack/react-native-testing-library/pull/1477](https://github.com/callstack/react-native-testing-library/pull/1477)

**Full Changelog**:
callstack/react-native-testing-library@v12.2.2...v12.3.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" in timezone
America/Los_Angeles, Automerge - "after 5pm,every weekend" in timezone
America/Los_Angeles.

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/valora-inc/wallet).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEyMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants