Skip to content

feat: support mocking a reply with Uint8Arrays#3661

Closed
snovader wants to merge 1 commit intonodejs:mainfrom
snovader:mock-uint8array
Closed

feat: support mocking a reply with Uint8Arrays#3661
snovader wants to merge 1 commit intonodejs:mainfrom
snovader:mock-uint8array

Conversation

@snovader
Copy link
Copy Markdown

@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
Copy Markdown
Contributor

Uzlopak commented Oct 1, 2024

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

#3662

@snovader
Copy link
Copy Markdown
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