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

fix: toBeOnTheScreen RNTL v12 #151

Merged
merged 5 commits into from
Feb 21, 2023
Merged

Conversation

mdjastrzebski
Copy link
Collaborator

What:

RNTL v12 includes some breaking changes that broke toBeOnTheScreen() matchers as well as some our tests.

This PR restores all of these.

Why:

RNTL v12 includes some breaking changes.

How:

toBeOnTheScreen() uses UNSAFE_root and container to find root rendered element.

Checklist:

  • Documentation added to the docs N/A
  • Typescript definitions updated N/A
  • Tests
  • Ready to be merged

@codecov
Copy link

codecov bot commented Feb 21, 2023

Codecov Report

Merging #151 (b2210a5) into main (130344b) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #151   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           13        13           
  Lines          252       252           
  Branches        76        77    +1     
=========================================
  Hits           252       252           
Flag Coverage Δ
node-14 100.00% <100.00%> (ø)
node-16 100.00% <100.00%> (ø)
node-18 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/to-be-on-the-screen.ts 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@mdjastrzebski mdjastrzebski changed the title fix: to be on the screen rntl v12 fix: toBeOnTheScreen RNTL v12 Feb 21, 2023
@mdjastrzebski
Copy link
Collaborator Author

@pierrezimmermannbam pls take a look at this.

@mdjastrzebski mdjastrzebski merged commit d5590df into main Feb 21, 2023
@mdjastrzebski mdjastrzebski deleted the fix/to-be-on-the-screen-rntl-v12 branch February 21, 2023 09:35
@github-actions
Copy link

🎉 This PR is included in version 5.4.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants