-
Notifications
You must be signed in to change notification settings - Fork 107
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
NodeJS timers
module mock causing tests to timeout in JSDom
#470
Comments
Seems like the new native Node timers feature broke some installs. cc @swenzel-arc and @benjamingr I think we might want to deprecate this version and re-release as a new major to avoid this while we figure out the details of what is happening. @DiegoAndai I wrote you directly in one of the PRs you referenced: mui/material-ui#37430 I analyzed the situation a bit to figure out the likely suspects. I do not have a fix without looking more into it, but suggested something to look at. |
Just a rough summary to what has been done (see mui/material-ui#37430 for details):
If we depend on version 11 in Sinon, that will be a breaking change. The reason the linked PR still fails is due to an unrelated change that ironically was to improve webpack compatibility: sinonjs/sinon#2519 I don't think this change validates a new major version, as we usually care about API changes, not bundling compatibility, with regards to major releases. |
Closing this as I have no idea what is wrong and if something is wrong, and there exists a workaround. |
We have several tests timing out when updating
sinon
to15.1.0
. After an initial investigation, the identified cause wasfake-timers
version10.2.0
, specifically thetimers
module mock change, but don’t know why it caused the tests to fail.You can check the PRs for
sinon
update here: MUI PR, MUI X PR. The failed tests are listed there.10.2.0
What did you expect to happen?
Tests were running ok before
fake-timers
version10.2.0
, version10.1.0
works fine.What actually happens
Several tests listed are timing out, for example, the ones listed above.
How to reproduce
A minimal test for our codebase that passes before the upgrade and fails after:
Fails with the following error:
The other examples listed above are failing with the same error.
Thanks in advance for checking this out! 😊
The text was updated successfully, but these errors were encountered: