Skip to content

[test] Check that index files export every component folder - #49883

Open
maksimgm wants to merge 1 commit into
mui:masterfrom
maksimgm:test/index-exports
Open

maksimgm wants to merge 1 commit into
mui:masterfrom
maksimgm:test/index-exports

Conversation

@maksimgm

Copy link
Copy Markdown
Contributor

Closes #33987

went with the lint-style check @Janpot suggested in #40937 instead of generating the file. index.test.js now fails if a component folder isn't exported from index.js, or if index.js and index.d.ts re-export different modules. folders that are only imported by path (DefaultPropsProvider, OverridableComponent, Pigment*) are listed as exceptions.

uses import.meta.glob so it works in the browser test run too. nothing is out of sync today, I checked it fails when a line is removed from either file.

@code-infra-dashboard

code-infra-dashboard Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Deploy preview

https://deploy-preview-49883--material-ui.netlify.app/
QR code for https://deploy-preview-49883--material-ui.netlify.app/

Bundle size

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/private-theming 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Performance

No regressions in 32 benchmarks · precise to ±8.3% (±14.1% at worst) · ran 4m 15s · details


Check out the code infra dashboard for more information about this PR.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[internal] Generate index.ts to keep it up to date

1 participant