mirror of
https://github.com/aleleba/create-react-ssr.git
synced 2025-07-05 20:28:30 -06:00
PR-923441: Making fixes.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user