nocobase/testUtils.ts
被雨水过滤的空气-Rairn 49117afb72
refactor: front-end testing with vitest (#1900)
* refactor: front-end testing with vitest

* fix: fix build failed
2023-05-25 10:40:08 +08:00

8 lines
169 B
TypeScript

const globalTimeout = global.setTimeout;
export const sleep = async (timeout = 0) => {
await new Promise((resolve) => {
globalTimeout(resolve, timeout);
});
};