Skip to content

Commit

Permalink
Fix TransformStream in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mbraak committed Nov 3, 2024
1 parent f061a7c commit cafe9f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/support/setupTests.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import "@testing-library/jest-dom";
import jQuery from "jquery";
import { TransformStream } from "node:stream/web";

import "./jqTreeMatchers";

declare global {
interface Window {
$: JQueryStatic;
jQuery: JQueryStatic;
TransformStream: any;
}
}

window.$ = jQuery;
window.jQuery = jQuery;
window.TransformStream = TransformStream;

0 comments on commit cafe9f8

Please sign in to comment.