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: throw on invalid request handlers value in ".use()" #1876

Merged
merged 2 commits into from
Nov 24, 2023

Conversation

kettanaito
Copy link
Member

@kettanaito kettanaito commented Nov 21, 2023

Changes

  • Changes the error messages when provided invalid request handlers value to the setup* call.
  • Adds the request handlers value validation to the .use() method call. Adds tests

@kettanaito kettanaito merged commit ce73dfe into main Nov 24, 2023
10 checks passed
@kettanaito kettanaito deleted the fix/use-input-warning branch November 24, 2023 15:38
@kettanaito
Copy link
Member Author

Released: v2.0.9 🎉

This has been released in v2.0.9!

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError: Cannot destructure property 'header' of 'handler.info' as it is undefined.
1 participant