Jest tests are taking long time to run and failing unexpectedly after upgrading to version 1.7.17
.
#2832
Unanswered
som-matrix
asked this question in
Help
Replies: 2 comments 2 replies
-
Experiencing the same now, on @headlessui/react at 2.0.3 Will report back if I find a workaround |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hi @RobinMalfait, sorry for the ping – could you take a look at this issue when you have a moment? Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
After upgrading to version
1.7.17
of@headlessui/react
, Jest tests are experiencing unexpected behavior. The primary issue arises when attempting to mockResizeObserver
to resolve the "ReferenceError: ResizeObserver is not defined" error. However, adding the mock causes the tests to run very slowly and eventually fail.Versions
@headlessui/react
:1.7.17
Jest
:^27.5.1
Gatsby
: 4.23.0Steps to Reproduce
@headlessui/react
to version1.7.17
.ResizeObserver
to resolve "ReferenceError: ResizeObserver is not defined." in setup-test-env.js fileExpected Behavior
Jest tests should run successfully after upgrading to
@headlessui/react
version1.7.17
with the mock forResizeObserver
without significant performance issues.Actual Behavior
Jest tests take an unusually long time to run and eventually fail after adding the mock for
ResizeObserver
.Environment
Thanks for your assistance in resolving this issue!
Beta Was this translation helpful? Give feedback.
All reactions