You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Replace setImmediate with setTimeout (#12614)
This commit is contained in:
committed by
GitHub
parent
21ae29c002
commit
8b4e3e6647
@ -18,11 +18,6 @@ import fetchMock from "fetch-mock-jest";
|
||||
import { TextDecoder, TextEncoder } from "util";
|
||||
import { Response } from "node-fetch";
|
||||
|
||||
// jest 27 removes setImmediate from jsdom
|
||||
// polyfill until setImmediate use in client can be removed
|
||||
// @ts-ignore - we know the contract is wrong. That's why we're stubbing it.
|
||||
global.setImmediate = (callback) => window.setTimeout(callback, 0);
|
||||
|
||||
// Stub ResizeObserver
|
||||
// @ts-ignore - we know it's a duplicate (that's why we're stubbing it)
|
||||
class ResizeObserver {
|
||||
|
Reference in New Issue
Block a user