You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually it never returns void, so the definition file is incorrect. Would you like to make a PR that removes the void? There are two definition files that need to be changed, one in packages/test-utils/ and one in packages/server-test-utils
Version
1.0.0-beta.16
Reproduction link
https://github.com/Yawenina/vue-test-utils-classes
Steps to reproduce
What is expected?
no error
What is actually happening?
In my test file, I write a test like this:
but when I ran
npm run serve
, typescript yield an error:I read the source code and find the type definition of the
classes()
method is this:Maybe because the return value could be void so it does not have a
includes
method.When I change it to :
the error disappears and everything works ok.
The text was updated successfully, but these errors were encountered: