Skip to content

Commit 7e2f18c

Browse files
committed
rename prop
1 parent 0a55425 commit 7e2f18c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

npm/vue/src/index.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export function mount<V extends {}>(
122122
options?: MountingOptions<any> & Record<string, any>
123123
): Cypress.Chainable<{
124124
wrapper: VueWrapper<ComponentPublicInstance<V>>
125-
vm: VueWrapper<ComponentPublicInstance<V>>['vm']
125+
component: VueWrapper<ComponentPublicInstance<V>>['vm']
126126
}>
127127

128128
// Class component (without vue-class-component) - props
@@ -135,7 +135,7 @@ export function mount<V extends {}, P>(
135135
options?: MountingOptions<P & PublicProps> & Record<string, any>
136136
): Cypress.Chainable<{
137137
wrapper: VueWrapper<ComponentPublicInstance<V>>
138-
vm: VueWrapper<ComponentPublicInstance<V>>['vm']
138+
component: VueWrapper<ComponentPublicInstance<V>>['vm']
139139
}>
140140

141141
// Class component - no props
@@ -147,7 +147,7 @@ export function mount<V extends {}>(
147147
options?: MountingOptions<any> & Record<string, any>
148148
): Cypress.Chainable<{
149149
wrapper: VueWrapper<ComponentPublicInstance<V>>
150-
vm: VueWrapper<ComponentPublicInstance<V>>['vm']
150+
component: VueWrapper<ComponentPublicInstance<V>>['vm']
151151
}>
152152

153153
// Class component - props
@@ -160,7 +160,7 @@ export function mount<V extends {}, P>(
160160
options?: MountingOptions<P & PublicProps> & Record<string, any>
161161
): Cypress.Chainable<{
162162
wrapper: VueWrapper<ComponentPublicInstance<V>>
163-
vm: VueWrapper<ComponentPublicInstance<V>>['vm']
163+
component: VueWrapper<ComponentPublicInstance<V>>['vm']
164164
}>
165165

166166
// Functional component with emits
@@ -169,7 +169,7 @@ export function mount<Props extends {}, E extends EmitsOptions = {}>(
169169
options?: MountingOptions<Props & PublicProps> & Record<string, any>
170170
): Cypress.Chainable<{
171171
wrapper: VueWrapper<ComponentPublicInstance<Props>>
172-
vm: VueWrapper<ComponentPublicInstance<Props>>['vm']
172+
component: VueWrapper<ComponentPublicInstance<Props>>['vm']
173173
}>
174174

175175
// Component declared with defineComponent
@@ -226,7 +226,7 @@ export function mount<
226226
>
227227
>
228228
>
229-
vm: VueWrapper<
229+
component: VueWrapper<
230230
InstanceType<
231231
DefineComponent<
232232
PropsOrPropOptions,
@@ -252,7 +252,7 @@ export function mount<T extends DefineComponent<any, any, any, any, any>>(
252252
options?: ComponentMountingOptions<T>
253253
): Cypress.Chainable<{
254254
wrapper: VueWrapper<InstanceType<T>>
255-
vm: VueWrapper<InstanceType<T>>['vm']
255+
component: VueWrapper<InstanceType<T>>['vm']
256256
}>
257257

258258
// Component declared with no props
@@ -285,7 +285,7 @@ export function mount<
285285
ComponentPublicInstance<Props, RawBindings, D, C, M, E, VNodeProps & Props>
286286
> &
287287
Record<string, any>
288-
vm: VueWrapper<
288+
component: VueWrapper<
289289

290290
ComponentPublicInstance<Props, RawBindings, D, C, M, E, VNodeProps & Props>
291291
> &
@@ -322,7 +322,7 @@ export function mount<
322322
options?: MountingOptions<Props & PublicProps, D>
323323
): Cypress.Chainable<{
324324
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']
326326
}>
327327

328328
// Component declared with { props: { ... } }
@@ -363,7 +363,7 @@ export function mount<
363363
VNodeProps & ExtractPropTypes<PropsOptions>
364364
>
365365
>
366-
vm: VueWrapper<
366+
component: VueWrapper<
367367
ComponentPublicInstance<
368368
ExtractPropTypes<PropsOptions>,
369369
RawBindings,

0 commit comments

Comments
 (0)