Merge pull request #19970 from awanlin/topic/remove-global-textencoder-from-app
Removed global TextEncoder from app
This commit is contained in:
@@ -19,9 +19,3 @@
|
||||
// expect(element).toHaveTextContent(/react/i)
|
||||
// learn more: https://github.com/testing-library/jest-dom
|
||||
import '@testing-library/jest-dom';
|
||||
|
||||
// Do not remove, patching jsdom environment to support TextEncoder, refer to https://github.com/jsdom/jsdom/issues/2524
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { TextEncoder } from 'util';
|
||||
|
||||
global.TextEncoder = TextEncoder;
|
||||
|
||||
Reference in New Issue
Block a user