AndersDJohnson / AndersDJohnson/msw-expect

Only push request for assertion if handled

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
12
Forks
3
PR merge metrics
No merged PRs in 30d

Description

We should consider only pushing the request for assertion if the handler responded. This will ensure the request was mocked correctly as well for any subsequent assertions in the test. If users don't care about this, they can use the default handler, which always responds. Or maybe we make it either opt-in or opt-out to allow pushing requests even when they don't match.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.