// Simulate Jest for waitFor() // see https://github.com/testing-library/dom-testing-library/blob/0ce0c7054dfa64d1cd65053790246aed151bda9d/src/helpers.ts#L5 // and http"s://github.com/testing-library/dom-testing-library/blob/0ce0c7054dfa64d1cd65053790246aed151bda9d/src/wait-for.js#L53 // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore global.jest = { advanceTimersByTime: (ms: number) => vi.advanceTimersByTime(ms), } as any;