Updating code to use new version of react-router.

This commit is contained in:
Roland 2025-12-07 11:54:20 -07:00
parent 303810476e
commit 8ea3ea8a67
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
28 changed files with 34 additions and 52 deletions

View file

@ -1,6 +1,12 @@
// Jest setup file for React Testing Library
// This file is automatically loaded by Create React App before running tests
// Polyfill TextEncoder/TextDecoder for react-router v7 compatibility
// See: https://github.com/remix-run/react-router/issues/12363
import { TextDecoder, TextEncoder } from 'util';
global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder;
import '@testing-library/jest-dom';
// Set global Jest timeout to 30 seconds