We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2648213 commit dc58676Copy full SHA for dc58676
packages/create-instance/create-instance.js
@@ -104,11 +104,12 @@ export default function createInstance (
104
component.options._base = _Vue
105
}
106
107
+ const componentOptions = typeof component === 'function'
108
+ ? component.options
109
+ : component
110
// extend component from _Vue to add properties and mixins
111
// extend does not work correctly for sub class components in Vue < 2.2
- const Constructor = typeof component === 'function'
- ? _Vue.extend(component.options).extend(instanceOptions)
- : _Vue.extend(component).extend(instanceOptions)
112
+ const Constructor = _Vue.extend(componentOptions).extend(instanceOptions)
113
114
// used to identify extended component using constructor
115
Constructor.options.$_vueTestUtils_original = component
0 commit comments