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

Prettier sort test attributes #6384

Merged
merged 3 commits into from
Jul 10, 2024
Merged

Prettier sort test attributes #6384

merged 3 commits into from
Jul 10, 2024

Conversation

zurfyx
Copy link
Member

@zurfyx zurfyx commented Jul 9, 2024

Turns out our format utility for tests was never sorting the attributes, which is needed when comparing against the output produced by the Jest test.

For some reason the test environment doesn't see .prettierrc.js and I have no idea why, but there's an alternatively way where you can just import the same config programatically.

Solves the test failures in #6381

Copy link

vercel bot commented Jul 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2024 0:57am
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2024 0:57am

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 9, 2024
Copy link

github-actions bot commented Jul 9, 2024

size-limit report 📦

Path Size
lexical - cjs 28.52 KB (0%)
lexical - esm 28.32 KB (0%)
@lexical/rich-text - cjs 36.94 KB (0%)
@lexical/rich-text - esm 28.14 KB (0%)
@lexical/plain-text - cjs 35.51 KB (0%)
@lexical/plain-text - esm 25.34 KB (0%)
@lexical/react - cjs 38.81 KB (0%)
@lexical/react - esm 29.31 KB (0%)

fantactuka
fantactuka previously approved these changes Jul 9, 2024
@zurfyx zurfyx mentioned this pull request Jul 9, 2024
@acywatson
Copy link
Contributor

lint?

since when do we fail on warnings?

@zurfyx
Copy link
Member Author

zurfyx commented Jul 10, 2024

lint?

since when do we fail on warnings?

You're right, I misread that, it's a prettier issue and it's obvious from the error message...

EDIT: Welp, turns out I forgot to run prettier on all .mjs and .html files

@zurfyx zurfyx added this pull request to the merge queue Jul 10, 2024
Merged via the queue into main with commit c032cf2 Jul 10, 2024
20 of 21 checks passed
2wheeh pushed a commit to 2wheeh/lexical that referenced this pull request Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants