Skip to content
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

[code-infra] Fix @mui/internal-test-utils screen export type #43150

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

LukasTy
Copy link
Member

@LukasTy LukasTy commented Aug 2, 2024

Follow up on #42968.

Fix issues in: mui/mui-x#14002.

P.S. Tested locally that a package built on this PR fixes the TS issue.

@LukasTy LukasTy added test scope: code-infra Specific to the core-infra product labels Aug 2, 2024
@LukasTy LukasTy self-assigned this Aug 2, 2024
@mui-bot
Copy link

mui-bot commented Aug 2, 2024

Netlify deploy preview

https://deploy-preview-43150--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 48be57c

@LukasTy LukasTy marked this pull request as ready for review August 2, 2024 11:35
@@ -740,5 +740,5 @@ function act<T>(callback: () => void | T | Promise<T>) {
const bodyBoundQueries = within(document.body, { ...queries, ...customQueries });

export * from '@testing-library/react/pure';
export { act, cleanup, fireEvent };
export const screen: Screen = { ...rtlScreen, ...bodyBoundQueries };
export { act, fireEvent };
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cleanup is already exported on L742 above.
I don't see the need to duplicate/override the export. 🤷

@LukasTy LukasTy requested review from aarongarciah and a team August 2, 2024 11:36
@LukasTy LukasTy mentioned this pull request Aug 2, 2024
1 task
@LukasTy LukasTy merged commit 6833fb2 into mui:next Aug 2, 2024
19 checks passed
@LukasTy LukasTy deleted the fix-screen-export-type branch August 2, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: code-infra Specific to the core-infra product test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants