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 icon builder tests #44143

Merged
merged 2 commits into from
Oct 18, 2024
Merged

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented Oct 17, 2024

Just trying to figure out why I have a failing test locally in vitest that doesn't seem to break in mocha. The following produces a failing test:

pnpm --filter @mui/icons-material test -- -g "\"should produce the expected output\""

But when you try running the global command:

pnpm test:coverage -- -g "\"should produce the expected output\""

No test is running. Somewhere along the way we started running the build script natively in node. The file was renamed to .mjs. The test runner only looks for .js, .ts, and .tsx. The author didn't see any tests break after running them and assumed they were good.

We can steal the pattern from mui/mui-x#14508 to make sure all tests are included. looks like the icons builder tests were the only ones with the problem.

before:

  8242 passing (2m)
  1147 pending

after:

  8248 passing (2m)
  1147 pending

@Janpot Janpot added the scope: code-infra Specific to the core-infra product label Oct 17, 2024
@@ -245,7 +245,7 @@ export async function handler(options) {
renameFilter = renameFilterModule.default;
}
if (typeof renameFilter !== 'function') {
throw Error('renameFilter must be a function');
Copy link
Member Author

Choose a reason for hiding this comment

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

Also, eslint is not running on this file

@mui-bot
Copy link

mui-bot commented Oct 17, 2024

Netlify deploy preview

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

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 5a0b47c

@Janpot Janpot marked this pull request as ready for review October 17, 2024 16:01
@Janpot Janpot requested a review from a team October 17, 2024 16:01
Copy link
Member

@LukasTy LukasTy left a comment

Choose a reason for hiding this comment

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

💯

@Janpot Janpot merged commit 6679d01 into mui:master Oct 18, 2024
20 checks passed
@Janpot Janpot deleted the fix-icon-builder-tests branch October 18, 2024 08:51
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.

4 participants