diff --git a/packages/core/test/setup-mocks.ts b/packages/core/test/setup-mocks.ts index d2c9bc6e64..c36ff529c2 100644 --- a/packages/core/test/setup-mocks.ts +++ b/packages/core/test/setup-mocks.ts @@ -1 +1,6 @@ import 'reflect-metadata'; + +// WebCrypto Polyfill for older versions of Node.js 18 +if (!globalThis.crypto?.getRandomValues) { + globalThis.crypto = require('node:crypto').webcrypto; +}