8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62dec1c commit 9d18161Copy full SHA for 9d18161
packages/test-utils/src/matches.js
@@ -10,7 +10,7 @@ function vmMatchesName(vm, name) {
10
// We want to mirror how Vue resolves component names in SFCs:
11
// For example, <test-component />, <TestComponent /> and `<testComponent />
12
// all resolve to the same component
13
- const componentName = (vm.$options && vm.$options.name) || ''
+ const componentName = vm.name || (vm.$options && vm.$options.name) || ''
14
return (
15
!!name &&
16
(componentName === name ||
0 commit comments