-
Notifications
You must be signed in to change notification settings - Fork 5.7k
feat: add path option to toMatchSnapshot
#9156
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
4044f4a
feat: add path option to toMatchSnapshot
nickofthyme 0d0510a
refactor: validate contained path using full path
nickofthyme 9b9b677
refactor: revert path sanitization on path and add contained check
nickofthyme aae55cb
Merge branch 'master' into feat/snapshot-path
nickofthyme e899857
docs: update docs with path segment logic
nickofthyme df1e578
chore: add error message for contained path method
nickofthyme 93d9632
refactor: use name and pathSegments union type, allow toMatchSnapshot…
nickofthyme c4fd5a0
Merge branch 'master' into feat/snapshot-path
nickofthyme 45f5329
chore: apply suggestions from code review
nickofthyme 311fa94
refactor: types, renaming and test cleanup per pr comments
nickofthyme 07567bc
chore: add better error messages for escaping parent path
nickofthyme 76efbc2
fix: path segments args and test cleanup
nickofthyme b3f7b9a
Merge branch 'master' into feat/snapshot-path
nickofthyme df06c4b
fix: bad null error type
nickofthyme ac578b1
fix: fix pathSegements type in overrides-test
nickofthyme b705b26
fix: remove path sep from parent directory check
nickofthyme 5785cdb
fix: missing quote in test
nickofthyme a6931ca
fix: remote test.only
nickofthyme 9bc8041
fix: add exact check for parent path
nickofthyme c17469e
test: fix failing
nickofthyme 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.