add request & test

This commit is contained in:
tiero
2023-01-02 12:49:31 +01:00
parent bc8c7264a2
commit cd20b32f87
18 changed files with 1320 additions and 349 deletions

10
test/setupTests.ts Normal file
View File

@@ -0,0 +1,10 @@
//setupTests.tsx
import crypto from "crypto";
import { TextEncoder, TextDecoder } from "util";
global.TextEncoder = TextEncoder;
(global as any).TextDecoder = TextDecoder;
Object.defineProperty(global.self, 'crypto', {
value: crypto.webcrypto
});