add: tests
This commit is contained in:
6
jest.setup.js
Normal file
6
jest.setup.js
Normal 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;
|
||||
Reference in New Issue
Block a user