f1b1e2a7cc
* fix(storybook): prevent infinite remount of component * fix: disable flaky `.toMatch()` test
9 lines
302 B
TypeScript
9 lines
302 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
export async function tick(): Promise<void> {
|
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
await new Promise((globalThis.requestIdleCallback ?? setTimeout) as never);
|
|
}
|