From cafe9f80306f4b8980df878ea2eef35b78aca5d7 Mon Sep 17 00:00:00 2001 From: Marco Braak Date: Sun, 3 Nov 2024 14:12:50 +0100 Subject: [PATCH] Fix TransformStream in tests --- src/test/support/setupTests.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/support/setupTests.ts b/src/test/support/setupTests.ts index 282b5e5e..0e5a1638 100644 --- a/src/test/support/setupTests.ts +++ b/src/test/support/setupTests.ts @@ -1,5 +1,6 @@ import "@testing-library/jest-dom"; import jQuery from "jquery"; +import { TransformStream } from "node:stream/web"; import "./jqTreeMatchers"; @@ -7,8 +8,10 @@ declare global { interface Window { $: JQueryStatic; jQuery: JQueryStatic; + TransformStream: any; } } window.$ = jQuery; window.jQuery = jQuery; +window.TransformStream = TransformStream;