Vue: how to spy on Component method? #30367
Unanswered
nathan-kerr
asked this question in
Component Testing
Replies: 0 comments
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.
-
My spy is never called even though I can visually confirm that the target method
getRandomTerm()
is called when mounted. The image below shows that a term was generated and displayed in<h1>
.VocabFlashCard.vue:
VocabFlashCard.cy.ts:
Beta Was this translation helpful? Give feedback.
All reactions