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
(asyncfunctiontest(){letindex=0;lettext='';constcof=1000;constlength=1_000_000;letreadableStream;// eslint-disable-next-line no-implicit-coercionif(!isNaN(+length)){while(text.length<length){text+=Math.random().toString(36).slice(-5);}readableStream=newReadableStream<string>({start(controller){(functionpush(){constcurrentText=text.slice(index*cof,(index+1)*cof);if(!currentText){controller.close();return;}index++;controller.enqueue(currentText);push();})();},});}// Success in 18.5.0, but fail in 18.6.0constdata=awaitnewResponse(readableStream).text();expect(text).toBe(data);})();
Expected behavior
Success run test
Actual behavior
TypeError: The "input" argument must be an instance of ArrayBuffer or ArrayBufferView. Received type string ('jelyiocpjfg2b0epejohurnu...)
Environment
Version
18.6.0
Reproduction
Expected behavior
Success run test
Actual behavior
TypeError: The "input" argument must be an instance of ArrayBuffer or ArrayBufferView. Received type string ('jelyiocpjfg2b0epejohurnu...)
Additional information
https://github.com/fatcherjs/fatcher/blob/master/packages/progress/__tests__/customName.spec.ts#L35
https://github.com/fatcherjs/fatcher/blob/master/packages/progress/__tests__/progress.spec.ts#L31
The text was updated successfully, but these errors were encountered: