1 Star 0 Fork 628

gotohuangzhs/NocoBase

forked from NocoBase/NocoBase 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
testUtils.ts 534 Bytes
一键复制 编辑 原始数据 按行查看 历史
import { render } from '@testing-library/react';
function customRender(ui: React.ReactElement, options = {}) {
return render(ui, {
// wrap provider(s) here if needed
wrapper: ({ children }) => children,
...options,
});
}
export * from '@testing-library/react';
export { default as userEvent } from '@testing-library/user-event';
// override render export
export { customRender as render };
export const sleep = async (timeout = 0) => {
return new Promise((resolve) => {
setTimeout(resolve, timeout);
});
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/cqjl/nocobase.git
git@gitee.com:cqjl/nocobase.git
cqjl
nocobase
NocoBase
main

搜索帮助