You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have done some investigation this morning around how our tests started failing after updating from React 16.4 to 16.6 (then 16.8) but have found that the cause is jest-wrap when you use mount from Enzyme.
There are two test files, one with no wrapping which contain identical tests as tests that are wrapped, mocking an object called YJ and the other mocking the entire window and YJ.
Hope it helps!
The text was updated successfully, but these errors were encountered:
Hello, me again.
I have done some investigation this morning around how our tests started failing after updating from React 16.4 to 16.6 (then 16.8) but have found that the cause is
jest-wrap
when you usemount
from Enzyme.Here's a sample repository highlighting what we're experiencing.
https://github.com/culshaw/jest-wrap-react-16.8
There are two test files, one with no wrapping which contain identical tests as tests that are wrapped, mocking an object called
YJ
and the other mocking the entirewindow
andYJ
.Hope it helps!
The text was updated successfully, but these errors were encountered: