1 Star 0 Fork 496

OrdinaryStar / NocoBase

forked from NocoBase / NocoBase 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
jest.setup.ts 268 Bytes
一键复制 编辑 原始数据 按行查看 历史
Chareice 提交于 2022-03-02 12:50 . feat: error handle middleware (#214)
import prettyFormat from 'pretty-format';
global['prettyFormat'] = prettyFormat;
jest.setTimeout(300000);
// 把 console.error 转换成 error,方便断言
(() => {
const spy = jest.spyOn(console, 'error');
afterAll(() => {
spy.mockRestore();
});
})();
TypeScript
1
https://gitee.com/OrdinaryStars/nocobase.git
git@gitee.com:OrdinaryStars/nocobase.git
OrdinaryStars
nocobase
NocoBase
main

搜索帮助