willin/svelte-session

View on GitHub
test/global-setup.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { beforeAll } from 'vitest';
import crypto from 'node:crypto';

beforeAll(() => {
  if (!globalThis.crypto)
    // @ts-expect-error type
    globalThis.crypto = crypto;
});