-
-
Notifications
You must be signed in to change notification settings - Fork 6
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 plugin-options-string
tests
#38
test: migrate plugin-options-string
tests
#38
Conversation
💯
That got fixed in the dependency that parses this stuff. Can you update the PR? Let me know once the PR is ready to me merged, let's handle the stdin test later, it's tricky. |
50ec203
to
d010dd4
Compare
this should be all sorted now 👍 |
d010dd4
to
e60197c
Compare
9e7ecf4
to
c373e50
Compare
I'd like to change three things if you don't mind, if you can do them it'd be much quicker to merge this, or I can do these myself once I get a bit more time:
|
i've added at the minute we don't exit inside edit: weirdly the ci run complains about snapshots but i don't get that locally and have no changes |
Right but I don't think the code should be making that kind of assumption 🤔 better to be explicit about what we want, I think. |
I forgot to update the snapshots, I didn't even notice that caused the jest to "fail". If you work now if you rebase. |
Copies the tests from prettier. Notable changes: - A failed plugin load throws an uncaught exception before this change. This catches it and logs an error to stderr - A `snapshot-diff` package was being used to create a `git diff` like diff as a jest snapshot. We can pick the unique lines out instead of using this Skipped tests: - `--help {option}` is not supported in prettier CLI - `--config-path` with stdin is not yet supported (see prettier#21)
6080008
to
c4f6166
Compare
should all be good again now 👍 |
It seems that we are not doing that 🤔 for now it's not a blocker, I'm merging, thanks 👍 |
I totally forgot about that comment, my bad. We can look into it in a separate PR 👍 Will probably need a text diff dependency |
Copies the tests from prettier.
Notable changes:
snapshot-diff
package was being used to create agit diff
like diff as a jest snapshot. We can pick the unique lines out instead of using thisSkipped tests:
--help {option}
is not supported in prettier CLI--config-path
with stdin is not yet supported (see Config resolution in stdin mode #21)Notable hiccups:
--plugin=--foo--
, so the test has been changed for now to use--plugin=totally-invalid