-
Notifications
You must be signed in to change notification settings - Fork 25
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
Handling testing/adding a mockfile #184
Comments
Okay, so I realized I WASN'T on the latest version of @giphy/react-native-sdk, after updating I'm encountering a new error:
Seems to be coming in from the root import statement for the Giphy components. |
Hey @Meegan, To mock the Giphy module:
Then
Please let me know if that works for you. |
This resolved my issue, thanks! Can/should we either:
And I can make a PR to:
Let me know -- otherwise I can mark this soled and close the issue. |
Hey @Meegan, |
@Meegan, |
@ALexanderLonsky ah, thank you! Sorry, busy few weeks for me 😄 As a final note, I also had to mock a configure method on GiphyDialog, but that might be specific to my setup. |
Duplicates
Latest version
Summary 💡
I'm attempting to run test via jest in my app, and I'm getting this:
when attempting the below:
I've tried adding the @Giphy library to transformIgnorePatterns in my jestfile, but there's no difference there.
Is there a mockfile I can load into the library? If not, what would be required to set that up? (Admittedly, I'm somewhat new at working with these tests.)
Motivation 🔦
This is preventing me from my
does it render
test for my app.The text was updated successfully, but these errors were encountered: