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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I was trying to add UTs with jest and
react-router-dom-v5-compatwhich is using a<Link reloadDocument />component withreloadDocumentWhen I add a simple test which routes to a particular URL, it fails when the
reloadDocumentis 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-compatwhere, the UT is testing forevent.preventDefaultto befalsebut 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
reloadDocumentflag enabled? Possible to help how?Thanks in advance!!!
Beta Was this translation helpful? Give feedback.
All reactions