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(XMLHttpRequest): support request upload events #613

Merged
merged 8 commits into from
Aug 9, 2024

Conversation

kettanaito
Copy link
Member

@kettanaito kettanaito commented Aug 9, 2024

Warning

Upload events are not implemented in JSDOM (total is always 0). This, as all the other XHR functionality, must be tested in the actual browser.

Roadmap

  • Add browser test for upload callbacks (onprogress, etc).
  • Add browser tests for different request bodies (plain string, URLSearchParams, etc). Ideally, cover every possible request body type (mostly to assert the right body length in total).

@kettanaito kettanaito marked this pull request as ready for review August 9, 2024 17:38
@kettanaito kettanaito merged commit 472bcbe into main Aug 9, 2024
2 checks passed
@kettanaito kettanaito deleted the fix/xhr-upload-progress branch August 9, 2024 17:38
@kettanaito
Copy link
Member Author

Released: v0.34.2 🎉

This has been released in v0.34.2!

Make sure to always update to the latest version (npm i @mswjs/interceptors@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.

XMLHttpRequest upload (upload.onprogress) event is not supported
1 participant