@@ -122,7 +122,7 @@ export function mount<V extends {}>(
122
122
options ?: MountingOptions < any > & Record < string , any >
123
123
) : Cypress . Chainable < {
124
124
wrapper : VueWrapper < ComponentPublicInstance < V > >
125
- vm : VueWrapper < ComponentPublicInstance < V > > [ 'vm' ]
125
+ component : VueWrapper < ComponentPublicInstance < V > > [ 'vm' ]
126
126
} >
127
127
128
128
// Class component (without vue-class-component) - props
@@ -135,7 +135,7 @@ export function mount<V extends {}, P>(
135
135
options ?: MountingOptions < P & PublicProps > & Record < string , any >
136
136
) : Cypress . Chainable < {
137
137
wrapper : VueWrapper < ComponentPublicInstance < V > >
138
- vm : VueWrapper < ComponentPublicInstance < V > > [ 'vm' ]
138
+ component : VueWrapper < ComponentPublicInstance < V > > [ 'vm' ]
139
139
} >
140
140
141
141
// Class component - no props
@@ -147,7 +147,7 @@ export function mount<V extends {}>(
147
147
options ?: MountingOptions < any > & Record < string , any >
148
148
) : Cypress . Chainable < {
149
149
wrapper : VueWrapper < ComponentPublicInstance < V > >
150
- vm : VueWrapper < ComponentPublicInstance < V > > [ 'vm' ]
150
+ component : VueWrapper < ComponentPublicInstance < V > > [ 'vm' ]
151
151
} >
152
152
153
153
// Class component - props
@@ -160,7 +160,7 @@ export function mount<V extends {}, P>(
160
160
options ?: MountingOptions < P & PublicProps > & Record < string , any >
161
161
) : Cypress . Chainable < {
162
162
wrapper : VueWrapper < ComponentPublicInstance < V > >
163
- vm : VueWrapper < ComponentPublicInstance < V > > [ 'vm' ]
163
+ component : VueWrapper < ComponentPublicInstance < V > > [ 'vm' ]
164
164
} >
165
165
166
166
// Functional component with emits
@@ -169,7 +169,7 @@ export function mount<Props extends {}, E extends EmitsOptions = {}>(
169
169
options ?: MountingOptions < Props & PublicProps > & Record < string , any >
170
170
) : Cypress . Chainable < {
171
171
wrapper : VueWrapper < ComponentPublicInstance < Props > >
172
- vm : VueWrapper < ComponentPublicInstance < Props > > [ 'vm' ]
172
+ component : VueWrapper < ComponentPublicInstance < Props > > [ 'vm' ]
173
173
} >
174
174
175
175
// Component declared with defineComponent
@@ -226,7 +226,7 @@ export function mount<
226
226
>
227
227
>
228
228
>
229
- vm : VueWrapper <
229
+ component : VueWrapper <
230
230
InstanceType <
231
231
DefineComponent <
232
232
PropsOrPropOptions ,
@@ -252,7 +252,7 @@ export function mount<T extends DefineComponent<any, any, any, any, any>>(
252
252
options ?: ComponentMountingOptions < T >
253
253
) : Cypress . Chainable < {
254
254
wrapper : VueWrapper < InstanceType < T > >
255
- vm : VueWrapper < InstanceType < T > > [ 'vm' ]
255
+ component : VueWrapper < InstanceType < T > > [ 'vm' ]
256
256
} >
257
257
258
258
// Component declared with no props
@@ -285,7 +285,7 @@ export function mount<
285
285
ComponentPublicInstance < Props , RawBindings , D , C , M , E , VNodeProps & Props >
286
286
> &
287
287
Record < string , any >
288
- vm : VueWrapper <
288
+ component : VueWrapper <
289
289
290
290
ComponentPublicInstance < Props , RawBindings , D , C , M , E , VNodeProps & Props >
291
291
> &
@@ -322,7 +322,7 @@ export function mount<
322
322
options ?: MountingOptions < Props & PublicProps , D >
323
323
) : Cypress . Chainable < {
324
324
wrapper : VueWrapper < ComponentPublicInstance < Props , RawBindings , D , C , M , E > >
325
- vm : VueWrapper < ComponentPublicInstance < Props , RawBindings , D , C , M , E > > [ 'vm' ]
325
+ component : VueWrapper < ComponentPublicInstance < Props , RawBindings , D , C , M , E > > [ 'vm' ]
326
326
} >
327
327
328
328
// Component declared with { props: { ... } }
@@ -363,7 +363,7 @@ export function mount<
363
363
VNodeProps & ExtractPropTypes < PropsOptions >
364
364
>
365
365
>
366
- vm : VueWrapper <
366
+ component : VueWrapper <
367
367
ComponentPublicInstance <
368
368
ExtractPropTypes < PropsOptions > ,
369
369
RawBindings ,
0 commit comments