PR-923441: Making fixes.

This commit is contained in:
2025-03-26 04:53:59 +00:00
parent 92138567a1
commit b5da68ac9a
4 changed files with 33 additions and 1 deletions

View File

@ -3,6 +3,7 @@
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom';
import { TextEncoder, TextDecoder } from 'util';
//import fetch Mock
import fetchMock from 'jest-fetch-mock';
@ -18,3 +19,6 @@ function() {
removeListener: () => {/**/}
};
};
global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder as typeof global.TextDecoder;