ShallowMount: What a type have a props? #2414
Unanswered
PatrykMaternicki
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hi @PatrykMaternicki It only takes a few minutes, and we'll be able to take a look |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created help function to create mock component: It's look like this:
Usage:
const { createMockComponent } = useMockComponent(YourComponent)
It works. But typescript show me error like:
"Type YourProps has no properties in common with type 'VNodeProps'.
Any idea how to resolve this problem or what a type should be here?
Beta Was this translation helpful? Give feedback.
All reactions