-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Components containing DataGridPro halt Jest test runner #8572
Comments
I've tried downgrading |
I also tried reverting the codebase back to Thursday when my test suites were passing just fine but the problem persists. So I wonder if this is perhaps related to a licensing key issue? Is this something you can check on your end to see if we've exceeded 'Seats' ? Happy to fix this is that's the issue. |
Can confirm having the same issue. On Thursday with "@mui/x-data-grid-premium": "6.0.4" everything was fine. Today I upgraded the version and jest tests are getting stuck. Then I decided to downgrade back to this 6.0.4 version and the tests still get stuck. |
Thanks for confirming @marta-zamulovica - I'm glad I'm not alone! |
I can also confirm this issue. Will share any more details if/when I figure out what's going on. |
Reproduction repo added here to illustrate the issue: https://github.com/lounsbrough/muix-jest-babel-issue. |
Thanks for the extra detail @lounsbrough ! |
This is being caused because the JSDOM implementation of mui-x/test/utils/setupJSDOM.js Lines 9 to 17 in 25b9ca9
We should mention this in #1151 |
Thanks @m4theushw I can confirm that your workaround works for me, though would prefer a formal patch to the library. At least this unblocks me for now. |
Same issue on non pro version DataGrid, when upgraded local Node from v16.x to v18.15.0.
Seems to help (added to setupTest.tsx in CRA) to avoid hanging, but many other tests just fail due to wrong MUI components output. UPDATE: downgrading Node to v16.20 didn't help, downgrading DataGrid to 5.17.xx lower versions with version freeze also didnt help. I have to investigate it further tomorrow. |
I encountered this issue when updating to @mui/x-data-grid-pro 5.17.26. The tests ran fine with 5.16.0. @m4theushw's solution works for now. |
I am also facing same issue from last 3 4 days. Tried everything I can think of to resolve this issue but wasn't able to do that. Tried above solution and it works fine now so that for the solution. But is there any proper solution for this? |
I did see datagridpro just updated to |
Here is the issue, at least for my case: dperini/nwsapi#80 I don't believe this is caused by Note also that Moving to version |
@lounsbrough |
@dep - Can you confirm that there are no references in your lock file to If possible, can you delete your lock file entirely and reinstall packages? |
I don't use a lock file in my repo |
What package manager do you use, npm? You can run |
@lounsbrough This is all I get with
|
Yeah looks right to me, not sure what the issue is then, sorry. |
I guess one thing I see is that you're on a very old version of jsdom. (5 years old) Here's ours for example: jest-environment-jsdom 29.5.0 |
Not similar, but after upgrading to latest 2.2.6, JEST + RTL test cases started failing which were working just fine before sometime. Anyone else facing this issue? |
@sagar1111212121 Yes I am seeing an issue today:
Created this: #9582 Related: dperini/nwsapi#90 Resolution: dperini/nwsapi#90 (comment) |
Duplicates
Latest version
Steps to reproduce 🕹
Steps:
DataGridPro
Current behavior 😯
Test hangs indefinitely
Expected behavior 🤔
Test should finish
Context 🔦
No response
Your environment 🌎
npx @mui/envinfo
Order ID or Support key 💳 (optional)
53240
The text was updated successfully, but these errors were encountered: