Replies: 1 comment 1 reply
-
I'm running into a very similar issue where the presence of a
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone, I was trying to add UTs with jest and
react-router-dom-v5-compat
which is using a<Link reloadDocument />
component withreloadDocument
When I add a simple test which routes to a particular URL, it fails when the
reloadDocument
is used but passes when NOT used. I am not sure how this is working internally and how is it affected the UTs. Though, the app is working as expected.I went through the actual code of
v5-compat
where, the UT is testing forevent.preventDefault
to befalse
but even that test ifs not able to check the actual content of the page. I referred thisWanted to know, is it even possible to add a UT with
reloadDocument
flag enabled? Possible to help how?Thanks in advance!!!
Beta Was this translation helpful? Give feedback.
All reactions