fix integration tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-06-13 09:03:31 -04:00
1 parent bd97862ea4
commit 38d28b64cf
1 file changed
+1 -1
+1 -1
View File
@@ -22,7 +22,7 @@ fetchMock.enableMocks();
// Mock __non_webpack_require__ for tests
globalThis.__non_webpack_require__ = jest.fn();
global.setImmediate = jest.useRealTimers as unknown as typeof setImmediate;
global.setImmediate = global.setImmediate ?? (<TArgs extends any[]>(callback: (...args: TArgs) => void, ...args: TArgs) => setTimeout(() => callback(...args), 0));
process.on("unhandledRejection", (err: any) => {
fail(err);