MOBILE-3833 test: Improve error handling
This commit is contained in:
parent
1d5019ab19
commit
f485099a67
@ -22,7 +22,7 @@ console.debug = () => {
|
||||
};
|
||||
|
||||
// eslint-disable-next-line no-console, jest/no-jasmine-globals, @typescript-eslint/no-explicit-any
|
||||
console.error = (...args: any[]) => fail(args.map(a => a.toString()).join(''));
|
||||
console.error = (...args: any[]) => fail(args.map(a => String(a)).join(''));
|
||||
|
||||
// eslint-disable-next-line jest/no-jasmine-globals
|
||||
process.on('unhandledRejection', error => fail(error));
|
||||
|
Loading…
x
Reference in New Issue
Block a user