diff --git a/src/index.test.ts b/src/index.test.ts index 63e3861..1db9629 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -2,7 +2,7 @@ import { MCEvent } from '@managed-components/types' import { getEventData } from '.' import _crypto from 'crypto' -if (!crypto) { +if (!global.crypto) { vi.stubGlobal('crypto', crypto.webcrypto) }