Open
Description
Describe the bug
When I use a library that ship d.ts
files for Vue.js components, using vite-plugin-dts
, and I'm trying to do unit tests with findAllComponents
function on a generic component, I have a TS error:
No overload matches this call.
If I put a @ts-ignore
, the test is a success.
To Reproduce
Here is a link to reproduce the error. I put all the detail on how to reproduce the issue in the README
Expected behavior
No TS error.
Related information:
System:
OS: Windows 10 10.0.22631
CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
Memory: 3.93 GB / 15.74 GB
npmPackages:
@vue/test-utils: 2.4.1 => 2.4.1
vitest: ^0.31.1 => 0.31.1
vue: ^3.3.4 => 3.3.4
Additional context