-
Notifications
You must be signed in to change notification settings - Fork 178
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
Jest + react-testing-library failures #97
Comments
Thanks for reporting this, very annoying, sorry about that! I'll try to get this resolved in the next few days. |
Fixed this on dev branch, even added your example test as a base-case unit test https://github.com/alvarotrigo/react-fullpage/blob/dev/__tests__/react-fullpage.test.js The issue was that because jsdom mocks out Something to keep in mind tho, (and I think you're already leaning this way since you're using |
Very nice work @cmswalker !
|
done 1a61f0b |
I'm trying to do a simple unit test with Jest + react-testing-library but I'm getting errors when trying to render your component.
To reproduce: Get any boilerplate repo with Jest + react-testing-library
Do I need to setup any mocks in order to use this component in a jest environment?
I would think not. Perhaps its something related to my setup, but I have been able to reproduce on a very simple babel + jest setup.
Getting:
Other relevant errors:
The text was updated successfully, but these errors were encountered: