Elffuss BraidHub

kikocis/continue public

3ff29c567dd0 · 402 BRawPermalink
1import { TextDecoder, TextEncoder } from "util";
2
3import fetch, { Request, Response } from "node-fetch";
4import { beforeAll } from "vitest";
5
6beforeAll(() => {
7 // @ts-ignore
8 globalThis.fetch = fetch;
9 // @ts-ignore
10 globalThis.Request = Request;
11 // @ts-ignore
12 globalThis.Response = Response;
13 globalThis.TextEncoder = TextEncoder;
14 // @ts-ignore
15 globalThis.TextDecoder = TextDecoder;
16});