Remove sysend dependency (#10852)

GitOrigin-RevId: c3d9601256af8720ab41264609cb5c5c810afbba
This commit is contained in:
Alf Eaton
2023-01-10 09:04:37 +00:00
committed by Copybot
parent 1ff186a738
commit cda947d1ac
18 changed files with 640 additions and 580 deletions
+10
View File
@@ -98,6 +98,16 @@ globalThis.ResizeObserver =
window.ResizeObserver =
require('@juggle/resize-observer').ResizeObserver
// add stub for BroadcastChannel (unused in these tests)
globalThis.BroadcastChannel =
global.BroadcastChannel =
window.BroadcastChannel =
class BroadcastChannel {
addEventListener(type, listener) {}
removeEventListener(type, listener) {}
postMessage(message) {}
}
// node-fetch doesn't accept relative URL's: https://github.com/node-fetch/node-fetch/blob/master/docs/v2-LIMITS.md#known-differences
const fetch = require('node-fetch')
globalThis.fetch =