-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
The tooltip component fail test with jest snapshots #863
Comments
Having the same issue when trying to test a component that includes Popover from blueprint |
we don't use jest ourselves (yet--desperately want to) but there are known issues with using Blueprint components outside a real browser (particularly with jsdom #397) |
i was just playing with jesting in blueprint and ran up against this almost immediately, as expected: enzymejs/enzyme#252 (Support Portal components). good news is seems Fiber will solve all our problems as it includes support for portals. |
do you have a link to a facebook github issue or docs that verify this? |
Here's a start: facebook/react#8532 There seems to be a new |
@giladgray hey! I'm pretty certain we were both in some of @mchow01's classes :) We just started using blueprint in https://upstream.tech and when adding some jest tests ran into this issue as well. Have y'all found any resolution? |
@mmoutenot are your steps to repro the same as the original issue? Are your tests failing specifically when using snapshots? |
@adidahiya yes, an identical test setup with snapshots. |
I think this is fixed by #1644 - I updated to 1.31 and my tests no longer complain. |
If you are using jest, Please mock the module in the snapshot test file. Note: Tooltip material ui path may differ, change accordingly. |
Bug report
Steps to reproduce
RefreshButton.tsx
RefreshButtonTest.tsx
Actual behavior
Expected behavior
Just work
The text was updated successfully, but these errors were encountered: