Skip to content

Commit

Permalink
Fix for downstream whatwg-url issue
Browse files Browse the repository at this point in the history
  • Loading branch information
timdorr committed Jan 12, 2023
1 parent c061ece commit af34fb4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react-router-dom/__tests__/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ if (!globalThis.fetch) {
// @ts-expect-error
globalThis.Response = Response;
}

import { TextEncoder, TextDecoder } from "util";
global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder;

0 comments on commit af34fb4

Please sign in to comment.