Open Louis-Stekhoven-Smith opened 2 days ago
hi @Louis-Stekhoven-Smith
Interesting. I'm not sure that's a big deal, as finding the component you just mounted is probably not very common.
But if you really want to see this fix, feel free to open a PR, that would be great!
The code you're looking for is probably the matches
function https://github.com/vuejs/test-utils/blob/3988a3161074d3ea6bbcbc57995f4f2829a83b39/src/utils/find.ts#L22
(and if you know which version introduced the regression, you can probably pinpoint the culprit commit by adding a unit test that reproduces your issue. You'll then have a good idea how to fix it)
Describe the bug
using findComponent(Test) without a wrapper no longer works after upgrading version >=2.4.5
To Reproduce
Finding components by querySelector seems to still work though
Expected behavior Both tests should pass.