You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CRA automatically injectsfetch in the Jest test environment. Since fetch isn't spec-compliant (it does not expose a body property) it fail the check introduced by react-router, version 6.4.5, thus making react-router misbehave.
A suggestion was made by @brophdawg11 to use @remix-run/web-fetch instead, but this isn't necessarily easy to implement as there's no exposed entrypoints in CRA to inject the polyfill beforefetch gets injected.
MichaelDeBoey, mifi, LePhenix47, juha-younite, melloware and 1 more