fix(E2E): add missing API mocks for invoices stats and portal billing #349

Merged
groombook-engineer[bot] merged 30 commits from fix/gro-693-e2e-fixes into dev 2026-05-04 15:05:40 +00:00
Showing only changes of commit 9ce823445c - Show all commits
+6 -1
View File
@@ -77,7 +77,12 @@ export async function getObject(key: string): Promise<{ body: Buffer; contentTyp
Key: key,
})
);
const body = await response.Body!.transformToBuffer();
const chunks: Uint8Array[] = [];
// response.Body is a Readable stream; collect chunks into a buffer
for await (const chunk of response.Body as AsyncIterable<Uint8Array>) {
chunks.push(chunk);
}
const body = Buffer.concat(chunks);
const contentType = response.ContentType ?? "application/octet-stream";
return { body, contentType };
}