1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

fix integration tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-06-10 17:29:51 -04:00
parent bd97862ea4
commit 38d28b64cf

View File

@ -22,7 +22,7 @@ fetchMock.enableMocks();
// Mock __non_webpack_require__ for tests // Mock __non_webpack_require__ for tests
globalThis.__non_webpack_require__ = jest.fn(); 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) => { process.on("unhandledRejection", (err: any) => {
fail(err); fail(err);