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: support changes for native-testing-library preset #2

Merged
merged 4 commits into from
Apr 28, 2019

Conversation

bcarroll22
Copy link
Collaborator

@bcarroll22 bcarroll22 commented Apr 26, 2019

What:

A jest preset meant to supercharge native-testing-library

Why:

I want the same "DOM" feel in debug output and snapshots as dom-testing-library gives you. I think the RN core team already has a good idea of the type of mocks they want in the bundled jest preset, so for now we'll create our own to emulate the feel we want.

Ultimately, I could totally see these mocks merging back into react-native, and I hope it does but until then, I'd like to be able to use this functionality as soon as possible. If for no other reason than the delay of merged features in RN, I think this is necessary to get moving,

How:

This requires unmocking some things from the react-native preset and doing it ourself.

Checklist:

  • Documentation added to the docs site
  • Typescript definitions updated
  • Tests
  • Ready to be merged

@codecov-io
Copy link

codecov-io commented Apr 28, 2019

Codecov Report

Merging #2 into next will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@         Coverage Diff         @@
##           next     #2   +/-   ##
===================================
  Coverage   100%   100%           
===================================
  Files         8      8           
  Lines        89     89           
  Branches     23     23           
===================================
  Hits         89     89
Impacted Files Coverage Δ
src/to-be-disabled.js 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a283e57...502eb34. Read the comment docs.

@bcarroll22 bcarroll22 changed the title feat: jest preset for more confidence 👍 feat: support changes for native-testing-library preset Apr 28, 2019
@bcarroll22 bcarroll22 added breaking change enhancement New feature or request labels Apr 28, 2019
@bcarroll22 bcarroll22 merged commit bfcc4e3 into next Apr 28, 2019
@bcarroll22 bcarroll22 deleted the pr/jest-preset branch April 28, 2019 04:55
@bcarroll22
Copy link
Collaborator Author

🎉 This PR is included in version 2.0.0 🎉

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