mirror of
https://github.com/nostr-connect/connect.git
synced 2025-12-17 13:14:20 +01:00
11 lines
252 B
TypeScript
11 lines
252 B
TypeScript
//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,
|
|
});
|