mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-22 02:15:11 +01:00
7 lines
250 B
TypeScript
7 lines
250 B
TypeScript
|
/// <reference types="@testing-library/jest-dom"/>
|
||
|
|
||
|
export async function tick(): Promise<void> {
|
||
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||
|
await new Promise((globalThis.requestIdleCallback ?? setTimeout) as never);
|
||
|
}
|