-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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 1.15, jsxSingleQuote and inline snapshots #7353
Comments
|
Thanks. I have to admit though that at this point I don't quite understand why Jest needs to format my source code – what would happen if I, for example, used different JSX quotes inside my |
We don't format jsx, we format the result from For prettier discussion, please see #6380 |
Oh, I probably understand now, it took me a while :) So when Jest transforms this: expect(tree).toMatchInlineSnapshot(); to this: expect(tree).toMatchInlineSnapshot(`
<Example>hello</Example>
`); it does so by reading my source file into AST via Prettier, appending the snapshot in it and calling Thanks! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm trying Jest with the newly released Prettier 1.15 that supports
jsxSingleQuote
. I have set it totrue
in my.prettierrc
and after running Jest, tests look like this:I've got two questions here:
<Link to="/">
on line 2.Thanks.
The text was updated successfully, but these errors were encountered: