diff --git a/src/index.test.ts b/src/index.test.ts index 1db9629..d286749 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -3,7 +3,7 @@ import { getEventData } from '.' import _crypto from 'crypto' if (!global.crypto) { - vi.stubGlobal('crypto', crypto.webcrypto) + vi.stubGlobal('crypto', _crypto.webcrypto) } describe('getEventData', () => {