-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix(expect)!: check more properties for error equality #5876
Open
hi-ogawa
wants to merge
36
commits into
vitest-dev:main
Choose a base branch
from
hi-ogawa:error-equality-custom-properties
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+522
−140
Open
Changes from 28 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
f6d436b
fix(expect)!: check more properties for error equality
hi-ogawa a768f59
test: update
hi-ogawa 7f3c0c2
chore: comment
hi-ogawa 79818e5
wip: check cause and errors
hi-ogawa 33e71aa
test: error diff
hi-ogawa 7091ecf
test: move test
hi-ogawa fb1b9fe
Revert "test: error diff"
hi-ogawa 1dfcafc
test: fix colors
hi-ogawa 25084e7
Merge branch 'main' into error-equality-custom-properties
hi-ogawa 47e7496
chore: revert format
hi-ogawa 257d49d
Merge branch 'main' into error-equality-custom-properties
hi-ogawa 3609c3e
wip: format error
hi-ogawa fdaa614
test: update
hi-ogawa 6e5fe19
test: more
hi-ogawa bff22de
fix: enable error format plugin only during diff
hi-ogawa 46f3f9c
test: more snapshot
hi-ogawa 23ca80a
chore: comment
hi-ogawa b9d9204
test: move code
hi-ogawa 898ce93
test: more test
hi-ogawa 755cfb8
fix: handle asymmetric cause diff
hi-ogawa b9aab2b
fix: print error constructor
hi-ogawa 45062b6
fix: handle cyclic during format
hi-ogawa 86a0b5b
test: update snapshot
hi-ogawa de9a4de
wip: handle cycle
hi-ogawa dbbe137
fix: handle cyclic
hi-ogawa e2a1c32
refactor: minor
hi-ogawa 87031b5
docs: update `toEqual`
hi-ogawa 82b5971
fix: do the same for `toThrowError`
hi-ogawa 646f81f
chore: tweak
hi-ogawa b9f6d42
Merge branch 'main' into error-equality-custom-properties
hi-ogawa 5de6d0a
refactor: many if
hi-ogawa 1908bd6
fix: tweak asymmetric error.cause diff
hi-ogawa d0b805e
chore: remove debug
hi-ogawa b3d9557
Merge branch 'main' into error-equality-custom-properties
hi-ogawa 1b41876
Merge branch 'main' into error-equality-custom-properties
hi-ogawa 78edae3
fix: simplify back
hi-ogawa 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
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
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.
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.
Can we rewrite it as a bunch of
if
statements? This is hard to process 😄