-
-
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
[core] Lock jsdom
version
#11652
[core] Lock jsdom
version
#11652
Conversation
Deploy preview: https://deploy-preview-11652--material-ui-x.netlify.app/ |
Also, there's something wrong with our setup - the Core repo runs twice the number of tests in less time: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice observation! 💙
Do you know if renovate won't try bumping a direct dep version? 🤔
Also, there's something wrong with our setup - the Core repo runs twice the number of tests in less time
I'd say that in this case we are trying to compare apples to oranges.
The components in core repo are way lighter, easier and thus faster to render, don;t you think? 🤔
Good point, I think it would try bumping the version according to https://docs.renovatebot.com/getting-started/use-cases/#package-managers-with-lock-files |
You're right 👍🏻 I thought this could be a reason that explains why tests in jsdom are slower than tests in real browsers, but it's not 🙃 So the question remains - how come tests in jsdom are slower that tests in real browser? The whole point of jsdom is that it is supposed to be a "lightweight browser" that runs tests faster 😅 |
Well, that is a good question indeed. 💡 |
My hypothesis is that JSDoc is a lot lighter to get running, so the simplest test will be waaaaaay faster. I don't have any numbers to back it up though |
After merging #11303 I noticed that our CI pipeline became slower:
The difference is coming from the
test:unit
step:Turns out, there was a CSS selector engine change in
jsdom
that causes a performance regression - see https://github.com/jsdom/jsdom/releases/tag/23.2.0I've locked the
jsdom
version for now.