Skip to content

Commit

Permalink
Fix tests on node<20
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-orlik committed Dec 15, 2023
1 parent e6d9931 commit 5d5f3ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import { MCEvent } from '@managed-components/types'
import crypto from 'crypto'
import { eventHandler } from '.'

const randomUUID = crypto.randomUUID()

if (!global.crypto) {
vi.stubGlobal('crypto', crypto)
}

describe('Reddit MC event handler works correctly', async () => {
const fetchedRequests: any = []

Check warning on line 12 in src/index.test.ts

View workflow job for this annotation

GitHub Actions / build-test (18.x)

Unexpected any. Specify a different type
const setCookies: any = []

Check warning on line 13 in src/index.test.ts

View workflow job for this annotation

GitHub Actions / build-test (18.x)

Unexpected any. Specify a different type
Expand Down

0 comments on commit 5d5f3ca

Please sign in to comment.