Skip to content
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(types): add generic type to MockedRequest.passthrough #2198

Merged
merged 1 commit into from
Sep 7, 2024

Conversation

sbaechler
Copy link

This allows using request.passthrough() in a handler that also returns data.

Closes #2195

I was not able to run the test suite without errors even in the backport/v1 branch. There were no type errors though.

@kettanaito
Copy link
Member

Hi, @sbaechler. Thanks for shipping this backport fix!

I've tested it locally and all tests seem passing.

// pnpm test:browser
192 passed (4.1m)

I've tested this using our type tests at the time with TS versions 4.8 - 5.2, all type tests are passing as well. I think this should be good to go.

@kettanaito kettanaito merged commit e13e646 into mswjs:backport/v1 Sep 7, 2024
1 check failed
@kettanaito
Copy link
Member

Released: v1.3.4 🎉

This has been released in v1.3.4!

Make sure to always update to the latest version (npm i msw@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants