-
-
Notifications
You must be signed in to change notification settings - Fork 563
feat: custom request predicate function #2541
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
kettanaito
merged 32 commits into
mswjs:main
from
ytoshiki:feature/custom-predicate-function
Aug 30, 2025
Merged
Changes from 2 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
1a2110f
feat(http): support custom predicate functions in http request handlers
ytoshiki ba63e46
feat(graphql): support custom predicate functions in graphql request …
ytoshiki d0253f8
fix: change path type
ytoshiki b01417f
test: node
ytoshiki 570692b
test: browser
ytoshiki 157b54c
chore: change import
ytoshiki dc0efc7
chore: delete tests
ytoshiki c5b9eb2
chore: fix path
ytoshiki 3388f96
chore: fix path resolving error
ytoshiki 6f8d5fa
Merge branch 'main' into feature/custom-predicate-function
ytoshiki d820b6e
chore: change path
ytoshiki 5763c33
fix: test
ytoshiki 1e9a8e3
fix(http): rename path to predicate
ytoshiki 8b00de3
fix(graphql): rename operationName to predicate
ytoshiki da1f44c
feat: add predicate caching to RequestHandler for performance optimiz…
ytoshiki 06f01e9
fix: predicate cache logic
ytoshiki 4452a33
chore: use consistent typeof checks
ytoshiki dc60641
Revert "chore: use consistent typeof checks"
ytoshiki 9ffca63
Revert "fix: predicate cache logic"
ytoshiki b37a5e0
Revert "feat: add predicate caching to RequestHandler for performance…
ytoshiki fd5cd0f
Merge branch 'main' into feature/custom-predicate-function
ytoshiki c3f89aa
Merge branch 'main' into feature/custom-predicate-function
kettanaito 7dd1046
fix: polish handler classes
kettanaito 54f0481
fix(GraphQLHandler): support `{ matches }` predicate return type
kettanaito 98ff915
fix(core): export `GraphQLOperationType` type
kettanaito 61d5a99
fix(HttpHandler): path params inference
kettanaito 7cb1fb6
test: add type tests for custom predicate
kettanaito 4baba5c
chore: polish handler tests
kettanaito 18dfcc9
test: add unit tests for custom predicate function
kettanaito 8ea8e27
test: polish node custom predicate tests
kettanaito 4765f98
test: polish graphql custom predicate tests
kettanaito af5b4d6
test: polish e2e custom predicate tests
kettanaito 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
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.