mirror of
https://github.com/nocobase/nocobase.git
synced 2026-09-01 14:57:36 +08:00
86065fa208
* feat: error handle middleware * feat: application error handler * feat: handle with sequelizeValidationError * fix: test * fix: test
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();
|
|
});
|
|
})();
|