Skip to content

Commit

Permalink
add crypto to test file
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-astra-via committed Jul 18, 2024
1 parent eaa6c62 commit 52b27aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { Client, MCEvent } from '@managed-components/types'
import { vi, describe, it, expect, beforeEach } from 'vitest'
import { onEvent } from '.'
import crypto from 'crypto'
if (!global.crypto) {
vi.stubGlobal('crypto', crypto)
}

describe('Twitter Analytics MC', () => {
let mockClient: Client
Expand Down

0 comments on commit 52b27aa

Please sign in to comment.