updates
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// Test setup to ensure clean global state
|
||||
import { afterAll, beforeAll } from "bun:test";
|
||||
|
||||
// Store original crypto before any tests run
|
||||
const originalCrypto = globalThis.crypto;
|
||||
|
||||
beforeAll(() => {
|
||||
// Ensure we have a clean crypto object
|
||||
globalThis.crypto = originalCrypto;
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
// Restore original crypto after all tests
|
||||
globalThis.crypto = originalCrypto;
|
||||
});
|
||||
Reference in New Issue
Block a user