-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[code-infra] Split date-picker test files #16825
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
Conversation
Deploy preview: https://deploy-preview-16825--material-ui-x.netlify.app/ |
Could you describe why splitting those files improve the tests? |
One of the main issues with vitest we have in CI is that it gets "stuck" at some steps. It was caused by both While disabling Mostly:
And probably more. I could have fixed those files specifically, but decided to implement a more systematic approach so it is harder for it to happen in the future. |
OK |
Indeed, I went with a In the end these test files were just running other functions, which themselves run a lot of other functions/files, so most meaningful interactions would be in different files anyways. It is not as simple as before, but it should be quite simple to replicate in the future 😅 |
These are improvements made during the
vitest
PRI'm moving the changes out so that PR is leaner.
describes.**.test.tsx
fromx-date-pickers*
packages into smaller, faster files.describeConformance.*
describeValue.*
describeValidation.*
describeValueMultiInput.DesktopDateRangePicker.test.tsx
anddescribeValueSingleInput.DesktopDateRangePicker.test.tsx
had to be split into even smaller files.describeConformance
testsOfc, suggestions on how to name the files are welcome, I went with the function names to be easier to understand. :)