mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 12:18:15 +08:00
14 lines
268 B
TypeScript
14 lines
268 B
TypeScript
import prettyFormat from 'pretty-format';
|
||
|
||
global['prettyFormat'] = prettyFormat;
|
||
|
||
jest.setTimeout(300000);
|
||
|
||
// 把 console.error 转换成 error,方便断言
|
||
(() => {
|
||
const spy = jest.spyOn(console, 'error');
|
||
afterAll(() => {
|
||
spy.mockRestore();
|
||
});
|
||
})();
|