mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-03 12:47:44 +08:00
49117afb72
* refactor: front-end testing with vitest * fix: fix build failed
8 lines
169 B
TypeScript
8 lines
169 B
TypeScript
const globalTimeout = global.setTimeout;
|
|
|
|
export const sleep = async (timeout = 0) => {
|
|
await new Promise((resolve) => {
|
|
globalTimeout(resolve, timeout);
|
|
});
|
|
};
|