Typing of a @vue/test-utils object model style class #8250
Unanswered
segevfiner
asked this question in
Help/Questions
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.
-
I'm trying to refactor some repetitive component tests, so I'm trying to figure out what's the best way to do so, one pattern I tried is extracting repetitive stuff to a "page object model" like class:
But I'm not sure how to type
static mount
's parameters correctly, and I'm not familiar with any obvious TypeScript syntax to just say that it gets the same parameters as@vue/tets-utils
mount
. Any ideas how to do this? Is there such syntax? Am I going about this the right way or should I do something different? Is there a well known name for this pattern?Beta Was this translation helpful? Give feedback.
All reactions