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

Does this run Prettier? #70

Open
wldcordeiro opened this issue May 9, 2018 · 3 comments
Open

Does this run Prettier? #70

wldcordeiro opened this issue May 9, 2018 · 3 comments

Comments

@wldcordeiro
Copy link

wldcordeiro commented May 9, 2018

I see failures here and it isn't updating the code with prettier, am I doing something wrong here? I thought it would update it.

If it doesn't I'd like it to work like updating snapshots where I can rerun it with -u and have prettier fix things.

@jasonkuhrt
Copy link

I see failures here and it isn't updating the code with prettier, am I doing something wrong here? I thought it would update it.

You could use pretty-quick for that?

If it doesn't I'd like it to work like updating snapshots where I can rerun it with -u and have prettier fix things.

That sounds nice...

@zachsa
Copy link

zachsa commented Apr 9, 2020

When I save a test while running jest --watch, I was expecting the file to be reformatted. This doesn't happen.

What does happen though is that my tests fail if the code isn't formatted perfectly....

@keplersj
Copy link
Owner

Hi all,

This project does not currently format code (the equivalent of prettier --write) instead it checks that files ran through the runner are formatted according to Prettier formatting guidelines.

However, this project could adopt the feature of a watch plugin similar to jest-runner-eslint: https://github.com/jest-community/jest-runner-eslint#toggle---fix-in-watch-mode

Let me know if this solves your issue, thanks!

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

No branches or pull requests

4 participants