mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 22:13:00 +00:00
Replace react-router-dom@6 with react-router@7
This commit is contained in:
5
jsx/testing/setup.jest.js
Normal file
5
jsx/testing/setup.jest.js
Normal file
@@ -0,0 +1,5 @@
|
||||
// Workaround "ReferenceError: TextEncoder is not defined"
|
||||
// https://stackoverflow.com/questions/68468203/why-am-i-getting-textencoder-is-not-defined-in-jest/68468204#68468204
|
||||
// https://jestjs.io/docs/configuration#setupfiles-array
|
||||
import { TextEncoder, TextDecoder } from 'util';
|
||||
Object.assign(global, { TextDecoder, TextEncoder });
|
Reference in New Issue
Block a user