add: tests

This commit is contained in:
h z
2024-12-09 08:46:20 +00:00
parent d8da574833
commit 3f6461d17e
7 changed files with 3904 additions and 22 deletions

6
jest.setup.js Normal file
View File

@@ -0,0 +1,6 @@
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;