getting error TypeError: Cannot read properties of undefined (reading 'ctx') #6572
Unanswered
Racheal-Iperu
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello , i'm trying to mock a function in my component to assert whether it was called. I keep getting the error message
TypeError: Cannot read properties of undefined (reading 'ctx')
. I tried it with a very basic component and i get the same error.attached are my test file and basic component im testing with. I need to be able to spy on a function and know whether it was called.
Thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions