-
-
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
Ignore indentation of data structures in jest-diff #3429
Merged
Merged
Changes from 17 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
57706fa
Ignore indentation in jest-diff
pedrottimark 78c8308
Ignore indentation in structuredPatch and test it more
pedrottimark c793c8a
Merge branch 'master' to see if Prettier 1.3 in 3444 causes merge con…
pedrottimark b1980c0
Fix regression for multiline string from toBe or toEqual
pedrottimark 18063a3
Add snapshot option and make spacing consistent for --expand
pedrottimark a0bb73c
Merge branch 'master' into ignore-indentation-diff to resolve merge c…
pedrottimark 9096b7b
Ignore indentation only in compareObjects not in snapshots
pedrottimark d4af07f
Resolve merge conflicts with 3965 and 4152
pedrottimark 6931b9c
Format lines that are equal except for indentation in cyan color
pedrottimark 87209b9
Edit code after proof reading
pedrottimark 7c4ddc2
Merge master to resolve merge conflicts with 4314
pedrottimark c6b3a21
Fix misplaced className prop in React elements test
pedrottimark 5f2afb4
Edit code and comments after rereading
pedrottimark b027601
Factor elementSymbol out of diff test cases
pedrottimark 14e3ff7
Merge branch 'master' into ignore-indentation-diff to upgrade Flow fr…
pedrottimark bebf76a
Add tests for color of text and background color of spaces
pedrottimark f178db0
Rewrite tests for color to eliminate duplicate snapshots
pedrottimark 787e124
Make requested changes especially space in second column
pedrottimark 519019f
Edit redundant comments
pedrottimark File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's suspicious that these are indented less by one space now. Why was this change made? It makes "Object" not line up with "Received" any longer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This space or no space confused me for a long while. We can go either way. Your choice!
Before this pull request the result changed according to CLI option:
--no-expand
option uses hunk format fromdiff
with no space between the first column marker and the actual line--expand
option formatted the chunk lines fromdiff
with a space there.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't realize that it was different based on cli options, it shouldn't be! I think two spaces (make it line up with "Received") makes more sense, and it would be good to be consistent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it better too. To make double sure I understand:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep! The first column may be empty space as well.