[v2] Мonorepo, sdk-client, sdk-server, sdk-core package split (#1279)
This commit is contained in:
parent
384311b9b8
commit
71ae3acee0
1 changed files with 12067 additions and 4817 deletions
7
packages/client/vitest.setup.js
Normal file
7
packages/client/vitest.setup.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { webcrypto } from 'node:crypto';
|
||||
|
||||
// Polyfill globalThis.crypto for environments (e.g. Node 18) where it is not defined.
|
||||
// This is necessary for the tests to run in Node 18, specifically for the jose library, which relies on the globalThis.crypto object.
|
||||
if (typeof globalThis.crypto === 'undefined') {
|
||||
globalThis.crypto = webcrypto;
|
||||
}
|
||||
Loading…
Reference in a new issue