import './jestGlobalMocks';
+import { TextEncoder, TextDecoder } from 'util';
+
+Object.assign(global, { TextDecoder, TextEncoder });
+
process.on('unhandledRejection', (error) => {
const stack = error['stack'] || '';
// Avoid potential hang on test failure when running tests in parallel.