Skip to content

Commit

Permalink
Fix tests in Node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish committed Jun 21, 2024
1 parent 5da8c20 commit 05f3e0c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/react-router/__tests__/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ if (!globalThis.TransformStream) {
const { TransformStream } = require("node:stream/web");
globalThis.TransformStream = TransformStream;
}

if (!globalThis.File) {
const { File } = require("undici");
globalThis.File = File;
}

0 comments on commit 05f3e0c

Please sign in to comment.