Closed LiterallyDad closed 2 years ago
I'm quite confident that this is an issue in usage of Nock rather than fflate
. Try logging the length of the data you're receiving from the mocked endpoint and see if it is what you expect.
I'm going to assume this was an issue with usage and close, but feel free to reopen if this really is a bug with fflate
.
The problem Lib works until testing with nock + fetch.
test code
Api.ts
important
this works totally fine in all circumstances except for when the data comes from the mocked fetch's
Response.arrayBuffer()
even the code above, if I decompress immediately after compressing, no problem.
Error