From e62b4e0a0cf9ade229b3031260d883a504069f1d Mon Sep 17 00:00:00 2001 From: icslucas Date: Wed, 1 Oct 2025 19:58:01 +0200 Subject: [PATCH] Update tests/setupJest.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- tests/setupJest.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/setupJest.ts b/tests/setupJest.ts index e316ffbfb..761aa6341 100644 --- a/tests/setupJest.ts +++ b/tests/setupJest.ts @@ -26,7 +26,10 @@ global.fetch = jest.fn((url: RequestInfo | URL) => { // Mock WebAssembly.instantiateStreaming for Node.js environment // This is needed because wasm-bindgen generated code uses instantiateStreaming // but Jest runs in Node.js where it's not available. -global.WebAssembly.instantiateStreaming = jest.fn( +global.WebAssembly.instantiateStreaming = jest.fn< + Promise, + [Response | PromiseLike, WebAssembly.Imports?] +>( async ( source: Response | PromiseLike | WebAssembly.Module, importObject: WebAssembly.Imports | undefined,