Mocking - Cannot access '__wdio_import0' before initialization #12320
Unanswered
Medvedscak
asked this question in
Q&A
Replies: 1 comment
-
Hey @Medvedscak , thanks for raising the issue! Mind providing a minimal reproducible example, I would be happy to look into this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I'm trying to mock the useRef() of the 'react' for my tests like this (the similar way works with jest and I'm trying to achieve the same with WebdriverIO):
And I'm getting this import message even when I'm not trying to render anything (empty test case). I'm trying to understand what't the issue but the error doesn't point at some specific line (it says it's the closing line of the mock in this module). I can't find anything useful about this error on Google. Please advise
Beta Was this translation helpful? Give feedback.
All reactions