Skip to content

refactor: remove stale tests #1392

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

Merged
merged 2 commits into from
Apr 24, 2023
Merged

refactor: remove stale tests #1392

merged 2 commits into from
Apr 24, 2023

Conversation

mdjastrzebski
Copy link
Member

Summary

Remove or refactor tests that relied on some queries (*ByText, *ByPlaceholder, *ByDisplayValue) returning composite components. Currently are safe queries return host components.

Test plan

N/A

@mdjastrzebski mdjastrzebski requested review from AugustinLF, pierrezimmermannbam, thymikee and MattAgn and removed request for AugustinLF April 23, 2023 20:54
@codecov
Copy link

codecov bot commented Apr 23, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01 ⚠️

Comparison is base (4ac2833) 96.14% compared to head (338d5c3) 96.14%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1392      +/-   ##
==========================================
- Coverage   96.14%   96.14%   -0.01%     
==========================================
  Files          50       50              
  Lines        3318     3317       -1     
  Branches      492      492              
==========================================
- Hits         3190     3189       -1     
  Misses        128      128              
Impacted Files Coverage Δ
src/fireEvent.ts 98.64% <100.00%> (-0.01%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@mdjastrzebski mdjastrzebski merged commit 78194d1 into main Apr 24, 2023
@mdjastrzebski mdjastrzebski deleted the chore/remove-stale-tests branch April 24, 2023 09:13
hyochan referenced this pull request in hyochan/react-native-iap Jun 22, 2023
….2 (#2445)

[![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/react-native](https://callstack.github.io/react-native-testing-library)
([source](https://togithub.com/callstack/react-native-testing-library))
| [`12.0.1` ->
`12.1.2`](https://renovatebot.com/diffs/npm/@testing-library%2freact-native/12.0.1/12.1.2)
|
[![age](https://badges.renovateapi.com/packages/npm/@testing-library%2freact-native/12.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@testing-library%2freact-native/12.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@testing-library%2freact-native/12.1.2/compatibility-slim/12.0.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@testing-library%2freact-native/12.1.2/confidence-slim/12.0.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>callstack/react-native-testing-library</summary>

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

[Compare
Source](https://togithub.com/callstack/react-native-testing-library/compare/v12.1.1...v12.1.2)

#### What's Changed

#### Fixes

- fix: pointer events evaluation by
[@&#8203;mdjastrzebski](https://togithub.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1395](https://togithub.com/callstack/react-native-testing-library/pull/1395)
- fix: non-editable wrapped TextInput events by
[@&#8203;TMaszko](https://togithub.com/TMaszko) in
[https://github.com/callstack/react-native-testing-library/pull/1385](https://togithub.com/callstack/react-native-testing-library/pull/1385)
- fix: support `onXxx` event name for TextInput event checks by
[@&#8203;mdjastrzebski](https://togithub.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1404](https://togithub.com/callstack/react-native-testing-library/pull/1404)

#### Docs, Chores, etc

- docs: add config example for pnpm by
[@&#8203;yjose](https://togithub.com/yjose) in
[https://github.com/callstack/react-native-testing-library/pull/1400](https://togithub.com/callstack/react-native-testing-library/pull/1400)
- chore: move/remove deprecation functions by
[@&#8203;mdjastrzebski](https://togithub.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1402](https://togithub.com/callstack/react-native-testing-library/pull/1402)
- refactor: component tree dead code by
[@&#8203;mdjastrzebski](https://togithub.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1403](https://togithub.com/callstack/react-native-testing-library/pull/1403)
- refactor: `fireEvent` cleanup by
[@&#8203;mdjastrzebski](https://togithub.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1401](https://togithub.com/callstack/react-native-testing-library/pull/1401)

#### New Contributors

- [@&#8203;yjose](https://togithub.com/yjose) made their first
contribution in
[https://github.com/callstack/react-native-testing-library/pull/1400](https://togithub.com/callstack/react-native-testing-library/pull/1400)
👏
- [@&#8203;TMaszko](https://togithub.com/TMaszko) made their first
contribution in
[https://github.com/callstack/react-native-testing-library/pull/1385](https://togithub.com/callstack/react-native-testing-library/pull/1385)
👏

**Full Changelog**:
callstack/react-native-testing-library@v12.1.1...v12.1.2

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

[Compare
Source](https://togithub.com/callstack/react-native-testing-library/compare/v12.1.0...v12.1.1)

#### What's Changed

#### Fixes

- fix: remove incorrect dependencies by
[@&#8203;mdjastrzebski](https://togithub.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1399](https://togithub.com/callstack/react-native-testing-library/pull/1399)

**Full Changelog**:
callstack/react-native-testing-library@v12.1.0...v12.1.1

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

[Compare
Source](https://togithub.com/callstack/react-native-testing-library/compare/v12.0.1...v12.1.0)

#### What's Changed

##### Improvements

- feat: Render element tree in query error messages by
[@&#8203;stevehanson](https://togithub.com/stevehanson) in
[https://github.com/callstack/react-native-testing-library/pull/1378](https://togithub.com/callstack/react-native-testing-library/pull/1378)

##### Bugfixes

- Proper stack trace for findBy\* and findAllBy\* queries by
[@&#8203;mdjastrzebski](https://togithub.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1394](https://togithub.com/callstack/react-native-testing-library/pull/1394)

#### New Contributors

- [@&#8203;stevehanson](https://togithub.com/stevehanson) made their
first contributions in
[#&#8203;1377](https://togithub.com/callstack/react-native-testing-library/issues/1377),
[#&#8203;1378](https://togithub.com/callstack/react-native-testing-library/issues/1378)
and
[#&#8203;1390](https://togithub.com/callstack/react-native-testing-library/issues/1390)
👏

##### Chores, docs, deps, etc

- Fix broken link in contributing.md by
[@&#8203;stevehanson](https://togithub.com/stevehanson) in
[https://github.com/callstack/react-native-testing-library/pull/1377](https://togithub.com/callstack/react-native-testing-library/pull/1377)
- chore: update deps 2023-04-04 by
[@&#8203;mdjastrzebski](https://togithub.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1380](https://togithub.com/callstack/react-native-testing-library/pull/1380)
- Fix typo in "derived" in v12 migration guide by
[@&#8203;CodingItWrong](https://togithub.com/CodingItWrong) in
[https://github.com/callstack/react-native-testing-library/pull/1376](https://togithub.com/callstack/react-native-testing-library/pull/1376)
- chore: fix migration guide role prop naming by
[@&#8203;mdjastrzebski](https://togithub.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1382](https://togithub.com/callstack/react-native-testing-library/pull/1382)
- fix: "Edit this Page" link in docs results in 404 by
[@&#8203;stevehanson](https://togithub.com/stevehanson) in
[https://github.com/callstack/react-native-testing-library/pull/1390](https://togithub.com/callstack/react-native-testing-library/pull/1390)
- refactor: remove stale tests by
[@&#8203;mdjastrzebski](https://togithub.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1392](https://togithub.com/callstack/react-native-testing-library/pull/1392)
- chore: experiments app by
[@&#8203;mdjastrzebski](https://togithub.com/mdjastrzebski) in
[https://github.com/callstack/react-native-testing-library/pull/1391](https://togithub.com/callstack/react-native-testing-library/pull/1391)

**Full Changelog**:
callstack/react-native-testing-library@v12.0.1...v12.1.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

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

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- 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/dooboolab-community/react-native-iap).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS45OC40IiwidXBkYXRlZEluVmVyIjoiMzUuMTMxLjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

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