braid-design-system
Version:
Themeable design system for the SEEK Group
16 lines (10 loc) • 330 B
text/typescript
import { format } from 'util';
const error = global.console.error;
global.console.error = (message: any, ...restArgs: any[]) => {
const allArgs = [message, ...restArgs];
error(...allArgs);
throw new Error(
...(typeof message === 'string' ? [format(message, ...restArgs)] : allArgs),
);
};
jest.setTimeout(30000);