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

test: migrate write tests #53

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

43081j
Copy link
Contributor

@43081j 43081j commented Mar 4, 2025

Copies the write tests from prettier.

Notable differences:

  • Unchanged files are still listed in the output in prettier, but not here (e.g. foo.js (unchanged))
  • Written files also log out the time taken in prettier (e.g. foo.js 0ms)

Copies the `write` tests from prettier.

Notable differences:

- Unchanged files are still listed in the output in prettier, but not
  here (e.g. `foo.js (unchanged)`)
- Written files also log out the time taken in prettier (e.g. `foo.js
  0ms`)
@fabiospampinato
Copy link
Collaborator

Should we align with prettier here, outputting an elapsed time too (if it's big enough?) and outputting the "(unchanged)" bit? 🤔

@43081j
Copy link
Contributor Author

43081j commented Mar 6, 2025

I'm not sure. It's given per file so seems a bit unnecessary in that case, since each one is usually "0ms" individually

@fisker
Copy link
Member

fisker commented Mar 6, 2025

About

the "(unchanged)"

people are asking to remove it, I already mark this as accepted.
prettier/prettier#15480

@43081j
Copy link
Contributor Author

43081j commented Mar 6, 2025

Ah awesome

I think we are already all good then 👍 for that particular behaviour

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.

3 participants