-
-
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
Test empty Immutable collections with {min: false} option #4121
Conversation
@pedrottimark LGTM |
i think for const datastructureUnderTest = [
new Set(),
new Set([1, "a", Infinity, undefined, null]),
new Map(),
new Map([[1, 2], [3, 4]]),
"string",
123,
new Set([
new Map(),
new Set([1]),
]),
// etc...
];
expect(prettyPrint(datastructureUnderTest)).toMatchSnapshot(); i think these tests will be easire to write/fix/understand |
Seems like it is failing CI. |
@aaronabramov couldn't agree more. Snapshots would be perfect for testing pretty format output. |
I don't agree. Self-hosting the pretty-format tests will lead to weirdness. |
😞 thought about it for a while, but it was so tempting I forgot... |
I fixed 2 prettier lint errors (careless me). Now CircleCI fails with segmentation fault during integration tests in test-ci-partial for Node.js 4 |
Awesome! |
* Test empty Immutable collections with {min: false} option * Make neutral change to code to see if it helps CI * Fix 2 prettier lint errors
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. |
Summary
Explicitly specify expected result to prevent regression during work on
pretty-format
plugins :)@cpenarrieta can you please confirm? Thank you!
Test plan
Added 8 tests