Replace react-router-dom@6 with react-router@7

This commit is contained in:
Simon Li
2024-12-01 22:24:00 +00:00
parent ed76db02e2
commit 2bcb24c56e
17 changed files with 72 additions and 52 deletions

View 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 });