You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The change introduced in this PR#294 that clones the fixtures breaks the tests where the mocks are Buffers.
Same happens when the response is a typed array (eg. Uint8Array)
Expected:
When the mockRequest body is not a plain object, do not clone it, or clone it using specialised methods (eg. for Buffers Buffer.from, for Uint8Array Uint8Array.from, etc.)
Actual:
The buffer mock response is cloned into a plain object
The text was updated successfully, but these errors were encountered:
The change introduced in this PR#294 that clones the fixtures breaks the tests where the mocks are Buffers.
Same happens when the response is a typed array (eg. Uint8Array)
Expected:
When the mockRequest body is not a plain object, do not clone it, or clone it using specialised methods (eg. for Buffers Buffer.from, for Uint8Array Uint8Array.from, etc.)
Actual:
The buffer mock response is cloned into a plain object
The text was updated successfully, but these errors were encountered: