-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Closed
Labels
Description
What version of React Router are you using?
7.0.1
Steps to Reproduce
remarkablemark/mui-template#1082
git clone https://github.com/remarkablemark/mui-template.git
cd mui-template
git checkout dependabot/npm_and_yarn/react-router-dom-7.0.1
npm install
npm test
I tried replacing react-router-dom
with react-router
but got the same error
Expected Behavior
Jest tests pass with latest react-router
version
Actual Behavior
Jest tests failing with error:
ReferenceError: TextEncoder is not defined
2 | import type { ReactElement, ReactNode } from 'react';
3 | import { Provider } from 'react-redux';
> 4 | import { createMemoryRouter, RouterProvider } from 'react-router-dom';
| ^
5 | import { resetActions, store } from 'src/store';
6 |
7 | export { store };
at Object.<anonymous> (node_modules/react-router/dist/production/index.js:8368:15)
at Object.<anonymous> (node_modules/react-router-dom/dist/index.js:39:38)
at Object.<anonymous> (test/helpers.tsx:4:1)
at Object.<anonymous> (test/setupTests.ts:7:1)
Svish, skyqrose, bausmeier, hb0, MvdBerg550 and 3 more