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:
parent
bd97862ea4
commit
38d28b64cf
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user