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

feat: support mocking a reply with Uint8Arrays #3661

Closed
wants to merge 1 commit into from

Conversation

snovader
Copy link

@snovader snovader commented Oct 1, 2024

This relates to...

Resolves #3660

Rationale

It was previously not possible to provide MockInterceptor.reply with a Uint8Array and have those same bytes be returned as the result of a mocked request

Changes

Updated getResponseData to check for Uint8Arrays

Features

Bug Fixes

Breaking Changes and Deprecations

Status

  • I have read and agreed to the [Developer's Certificate of Origin][cert]
  • Tested
  • Benchmarked (optional)
  • Documented
  • Review ready
  • In review
  • Merge ready

@Uzlopak
Copy link
Contributor

Uzlopak commented Oct 1, 2024

I provided an alternative PR, which fixes this "better" and also tests it "properly"

#3662

@snovader
Copy link
Author

snovader commented Oct 1, 2024

Nice! I would go with your PR so I'll close this out.

@snovader snovader closed this Oct 1, 2024
@snovader snovader deleted the mock-uint8array branch October 1, 2024 15:44
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.

Enable mocking of replies with Uint8Arrays
2 participants