mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Updating code to use new version of react-router.
This commit is contained in:
parent
303810476e
commit
8ea3ea8a67
28 changed files with 34 additions and 52 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue