Skip to content

Conversation

@43081j
Copy link
Collaborator

@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)

@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
Collaborator 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
Collaborator Author

43081j commented Mar 6, 2025

Ah awesome

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

@fisker
Copy link
Member

fisker commented Apr 22, 2025

"0ms" because we can't snapshot the real time , It's mocked.

@43081j
Copy link
Collaborator Author

43081j commented Apr 23, 2025

aha very good point! so we should drop the unchanged but keep the timing i suppose

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`)
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