]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/setupJest.ts
update ceph source to reef 18.2.1
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / setupJest.ts
index 1f7770aec46063828e46e2a6bc04b25b7dcdff5b..646213554841a016248bf073ce0f968c46049b4f 100644 (file)
@@ -4,6 +4,10 @@ import 'jest-preset-angular/setup-jest';
 
 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.