Skip to content

Commit 07c19b8

Browse files
authored
test: fix webcrypto on node 18 (#6892)
1 parent 00ebea6 commit 07c19b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/test-utils/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { Options } from 'tinyexec'
22
import type { UserConfig as ViteUserConfig } from 'vite'
33
import type { WorkspaceProjectConfiguration } from 'vitest/config'
44
import type { UserConfig, Vitest, VitestRunMode } from 'vitest/node'
5+
import { webcrypto as crypto } from 'node:crypto'
56
import fs from 'node:fs'
67
import { Readable, Writable } from 'node:stream'
78
import { fileURLToPath } from 'node:url'

0 commit comments

Comments
 (0)