Skip to content

Commit

Permalink
Update setupTests.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
pvm-code committed Dec 17, 2024
1 parent ef1308c commit b417895
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/shared/utils/tests/setupTests.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
// The order is important here!
import { TextDecoder, TextEncoder } from "util";

if (typeof global.TextDecoder === "undefined") {
(global as any).TextDecoder = TextDecoder;
}

if (typeof global.TextEncoder === "undefined") {
global.TextEncoder = TextEncoder;
}


import "./mockMatchMedia";
import "@/projectSetupImports";
import "./mockConfig";
Expand Down

0 comments on commit b417895

Please sign in to comment.