MOBILE-3833 test: Improve error handling

main
Noel De Martin 2021-08-11 14:32:22 +02:00
parent 1d5019ab19
commit f485099a67
1 changed files with 1 additions and 1 deletions

View File

@ -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));