Skip to content

Conversation

@JCQuintas
Copy link
Member

Related to mui/mui-x#14508 and #43625

Help toward mui/mui-public#170

This also contains all the actual test changes to make material-ui repo run on vitest, while #43625 contains only config changes

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Nov 28, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Nov 28, 2025
@Janpot Janpot marked this pull request as ready for review November 28, 2025 14:01
@Janpot Janpot requested a review from a team November 28, 2025 14:01
Copy link
Member

@Janpot Janpot left a comment

Choose a reason for hiding this comment

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

I think we're good

Copy link
Member Author

@JCQuintas JCQuintas left a comment

Choose a reason for hiding this comment

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

I can't approve my own PR, so do as you wish, left comments, mostly for clarification, but everything looks good 👍

Thanks for the time put on this 😆

# macOS-latest has 3 CPUs, but we get "EMFILE: too many open files" errors with that parallelism
# Limit Next.js to 2 CPUs to prevent file descriptor exhaustion. Empty string uses os.availableParallelism()
NEXT_PARALLELISM: ${{ runner.os == 'macOS' && '2' || '' }}
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
Copy link
Member Author

Choose a reason for hiding this comment

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

Why we need these now? 🤔

Copy link
Member

Choose a reason for hiding this comment

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

Unrelated to this PR, but the docs build sometimes flakes without this token due to rate limiting in the github API when not authenticated. Was hitting this flakeyness while working on this PR

} else {
id = this.currentTest?.fullTitle() ?? null;
}
const id = expect.getState().currentTestName;
Copy link
Member Author

Choose a reason for hiding this comment

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

Does it make sense to remove the isVitest func from this file now?

Copy link
Member

Choose a reason for hiding this comment

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

Will do, was also planning a bigger cleanup and harmonization with X after this is merged

function describeSkipIf(condition: boolean) {
return condition ? describe.skip : describe;
};
const describeSkipIf = describe.skipIf;
Copy link
Member Author

Choose a reason for hiding this comment

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

We don't use this on X anymore, should we remove this file altogether?

if (window.navigator.userAgent.includes('jsdom')) {
this.skip();
}
it.skipIf(window.navigator.userAgent.includes('jsdom'))(
Copy link
Member Author

Choose a reason for hiding this comment

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

This reflow is so annoying to review 😆

Copy link
Member

Choose a reason for hiding this comment

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

yeah, best to disable whitespace in github files view


expect(() => {
setProps({ checked: true });
globalThis.didWarnControlledToUncontrolled = true;
Copy link
Member Author

Choose a reason for hiding this comment

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

weird pattern 😆

Comment on lines 5 to 7
// Remove once:
// * vitest is at >= 3.2.0
// * https://github.com/capricorn86/happy-dom/issues/1444 is solved
Copy link
Member Author

Choose a reason for hiding this comment

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

It seems this pr is using 4+ already, should these be removed?

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Nov 30, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Dec 1, 2025
@Janpot Janpot enabled auto-merge (squash) December 1, 2025 14:32
@Janpot Janpot disabled auto-merge December 1, 2025 15:28
@Janpot Janpot merged commit 83d2589 into mui:master Dec 1, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants