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
the type of wrapper.vm is ComponentPublicInstance instead of the specific type of the component. This causes the following to be displayed:
However, the test runs without a problem.
Expected behavior: Volar will reference the component type when validating code, and not report a problem if there isn't one.
@so1ve I'm not sure if that question was for me or not, but I'll lend my 2 cents: vuejs/test-utils#931 is where VTU exposed everything on wrapper.vm to allow the sample test pass. I'm not sure if this is a problem with VTU or volar, but running vitest from the console passes. Since I am just seeing the problem message in vscode so I thought I would start by reporting it here. Sorry I can't be more help.
Observed:
While editing the following test file,
for this .vue file:
the type of
wrapper.vm
isComponentPublicInstance
instead of the specific type of the component. This causes the following to be displayed:However, the test runs without a problem.
Expected behavior: Volar will reference the component type when validating code, and not report a problem if there isn't one.
Example project to reproduce problem: https://github.com/stevemandl/vitest_sample
The text was updated successfully, but these errors were encountered: