Skip to content
This repository was archived by the owner on Jul 30, 2020. It is now read-only.

Remove dependencies on Haste modules #53

Merged
merged 2 commits into from
Sep 6, 2019

Conversation

jeffreyffs
Copy link
Contributor

What:

Removes dependencies on haste modules

Why:

react-native 0.61.0 RC has been released and Haste modules no longer exist. Trying to find a module by its old Haste name (ie: 'View') no longer works.

How:

Changed from Haste module name -> path

Checklist:

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

I tested this against the current version of react-native in the package (0.59.6) and then I upgraded to react-native 0.61 and react 16.9.0 and all the tests also passed.

Also, I'm curious if anyone has a better way to do these mocks. Not in love with all the absolute paths in here.

Would love to get some additional 👀 and testing on this :)

@jeffreyffs
Copy link
Contributor Author

@bcarroll22 Any thoughts on this approach? I tested this on both 0.59.6 and 0.61.0 RC, so it appears to be backwards compatible.

@bcarroll22
Copy link
Collaborator

Sorry for the delay, we can merge this to fix the issues for those on later versions if you've tested it on both. The checks still pass, so we're good to go. This doesn't seem like a breaking change, so we'll call it a bugfix, since it fixes compatibility with RN>0.60.0

@bcarroll22
Copy link
Collaborator

@allcontributors please add @jeffreyffs for code

@allcontributors
Copy link
Contributor

@bcarroll22

I've put up a pull request to add @jeffreyffs! 🎉

@bcarroll22 bcarroll22 merged commit a4db523 into testing-library:master Sep 6, 2019
@bcarroll22
Copy link
Collaborator

🎉 This PR is included in version 4.0.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants