This commit is contained in:
jb
2026-09-06 11:29:23 -04:00
parent cb39431a11
commit 3e2fc920fb
43 changed files with 2124 additions and 128 deletions
+15
View File
@@ -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;
});