improve vitest hang (#1470)
* improve vitest hang * fmt * make types happy * fix types * fix
This commit is contained in:
@ -3,6 +3,11 @@ import { WebSocket } from 'ws'
|
||||
import { vi } from 'vitest'
|
||||
import 'vitest-webgl-canvas-mock'
|
||||
|
||||
import fetch from 'node-fetch'
|
||||
|
||||
// @ts-ignore
|
||||
globalThis.fetch = fetch
|
||||
|
||||
class MockRTCPeerConnection {
|
||||
createDataChannel() {
|
||||
return
|
||||
|
Reference in New Issue
Block a user