-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
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] Use glob to find the test files in parseTest #36305
Merged
flaviendelangle
merged 3 commits into
mui:master
from
flaviendelangle:test-files-parsing
Apr 14, 2023
Merged
[core] Use glob to find the test files in parseTest #36305
flaviendelangle
merged 3 commits into
mui:master
from
flaviendelangle:test-files-parsing
Apr 14, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Netlify deploy previewhttps://deploy-preview-36305--material-ui.netlify.app/ Bundle size report |
Is using |
93f0ff2
to
08c51e8
Compare
@michaldudak seems to work fine indeed, thanks ! |
08c51e8
to
8032dec
Compare
@michaldudak if you can please have a look at the PR 👼 |
michaldudak
reviewed
Apr 14, 2023
Co-authored-by: Michał Dudak <michal.dudak@gmail.com> Signed-off-by: Flavien DELANGLE <flaviendelangle@gmail.com>
michaldudak
approved these changes
Apr 14, 2023
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.
Works like a charm now.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
core
Infrastructure work going on behind the scenes
scope: docs-infra
Specific to the docs-infra product
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Effect on mui-x: mui/mui-x#8483
Revert #34789 (see sindresorhus/globby#193)
On X, most of our tests are in files named
{component}/tests/{feature}.{component}.test.tsx
For example
src/TimeField/tests/editing.TimeField.test.tsx
.This allow us to have several test files per component, especially for big ones with often several thousands of lines of test.
In it's current form,
parseTest
does not support those test files, so our doc does not have the correctforwardsRefTo
,inheritComponent
andspread
properties.To fix that, I introduced a glob matching in
parseTest
.But
globby
is pure ESM and our api builder process is not.So I downgraded
globby
to the last version working correctly with our current infra.If you have another solution, I'm interested because I am fully aware that downgrading a library like that is not great.
But on the other hand, migrating a thousand long set of scripts across 2 repo just for this use case will take a lot of time :/