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

docs(snapshot): specify how to disable prettier #11386

Closed
wants to merge 1 commit into from

Conversation

connorjclark
Copy link
Contributor

#7792 suggests that Prettier is optional, but I assumed that all I needed to do was remove prettier from my dependencies. That still results in Jest trying to require prettier, causing Jest to fail. Took awhile to learn I needed to set prettierPath to null or '', so I added this to the docs.

jestjs#7792 suggests that Prettier is optional, but I assumed that all I needed to do was remove `prettier` from my dependencies. That still results in Jest trying to require `prettier`, causing Jest to fail. Took awhile to learn I needed to set `prettierPath` to `null` or `''`, so I added this to the docs.
@facebook-github-bot
Copy link
Contributor

Hi @connorjclark!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@SimenB SimenB requested a review from jeysal May 8, 2021 08:48
@jeysal
Copy link
Contributor

jeysal commented May 8, 2021

Hmm, I actually didn't think about this limitation and I don't think there's a good reason for it. We can just try to find Prettier and fall back to not using it. So IMO we should change the behavior, not the docs. any concerns @SimenB?

@SimenB
Copy link
Member

SimenB commented May 8, 2021

Agreed

@jeysal
Copy link
Contributor

jeysal commented May 8, 2021

Adding this to the milestone because it seems like a blocker to get the stable release out, inline snapshots without Prettier isn't really working without it and we even announce it in the blog post

@jeysal
Copy link
Contributor

jeysal commented May 8, 2021

@connorjclark would you like to contribute that change or is that a little much for a first contribution? 😅

@jeysal jeysal added this to the Jest 27 milestone May 8, 2021
@connorjclark
Copy link
Contributor Author

Sure, I'd like to give it a shot.

I forgot about CLA requirements–I'll ask around at my workplace Monday about getting permission and update y'all then.

@connorjclark
Copy link
Contributor Author

I received approval–will take a crack at this tomorrow.

@connorjclark
Copy link
Contributor Author

(closing for #11400, since with that PR you don't need to manually set prettierPath to null)

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants