Files
HangmanLab.Frontend/jest.setup.js
2024-12-09 08:46:20 +00:00

6 lines
241 B
JavaScript

const { TextEncoder, TextDecoder } = require("util");
global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder;
const fetch = (...args) =>
import("node-fetch").then(({ default: fetch }) => fetch(...args));
global.fetch = fetch;