Files
misskey/packages/frontend/src/scripts/test-utils.ts
Acid Chicken (硫酸鶏) 356fd72603 build(#10336): interactions
2023-03-25 23:32:47 +09:00

5 lines
198 B
TypeScript

export async function tick(): Promise<void> {
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
await new Promise((globalThis.requestIdleCallback ?? setTimeout) as never);
}