@@ -45,12 +45,12 @@ type RawProps = VNodeProps & {
45
45
export interface MountingOptions < Props , Data = { } > {
46
46
/**
47
47
* Overrides component's default data. Must be a function.
48
- * @see https://vue-test-utils.vuejs.org/v2 /api/#data
48
+ * @see https://next. vue-test-utils.vuejs.org/api/#data
49
49
*/
50
50
data ?: ( ) => { } extends Data ? any : Data extends object ? Partial < Data > : any
51
51
/**
52
52
* Sets component props when mounted.
53
- * @see https://vue-test-utils.vuejs.org/v2 /api/#props
53
+ * @see https://next. vue-test-utils.vuejs.org/api/#props
54
54
*/
55
55
props ?: ( RawProps & Props ) | ( { } extends Props ? null : never )
56
56
/**
@@ -59,14 +59,14 @@ export interface MountingOptions<Props, Data = {}> {
59
59
propsData ?: Props
60
60
/**
61
61
* Sets component attributes when mounted.
62
- * @see https://vue-test-utils.vuejs.org/v2 /api/#attrs
62
+ * @see https://next. vue-test-utils.vuejs.org/api/#attrs
63
63
*/
64
64
attrs ?: Record < string , unknown >
65
65
/**
66
66
* Provide values for slots on a component. Slots can be a component
67
67
* imported from a .vue file or a render function. Providing an
68
68
* object with a `template` key is not supported.
69
- * @see https://vue-test-utils.vuejs.org/v2 /api/#slots
69
+ * @see https://next. vue-test-utils.vuejs.org/api/#slots
70
70
*/
71
71
slots ?: SlotDictionary & {
72
72
default ?: Slot
@@ -78,21 +78,21 @@ export interface MountingOptions<Props, Data = {}> {
78
78
/**
79
79
* Specify where to mount the component.
80
80
* Can be a valid CSS selector, or an Element connected to the document.
81
- * @see https://vue-test-utils.vuejs.org/v2 /api/#attachto
81
+ * @see https://next. vue-test-utils.vuejs.org/api/#attachto
82
82
*/
83
83
attachTo ?: HTMLElement | string
84
84
/**
85
85
* Automatically stub out all the child components.
86
86
* @default false
87
- * @see https://vue-test-utils.vuejs.org/v2 /api/#slots
87
+ * @see https://next. vue-test-utils.vuejs.org/api/#slots
88
88
*/
89
89
shallow ?: boolean
90
90
}
91
91
92
92
export type GlobalMountOptions = {
93
93
/**
94
94
* Installs plugins on the component.
95
- * @see https://vue-test-utils.vuejs.org/v2/ api/#plugins
95
+ * @see https://next. vue-test-utils.vuejs.org/api/#global- plugins
96
96
*/
97
97
plugins ?: ( Plugin | [ Plugin , ...any [ ] ] ) [ ]
98
98
/**
@@ -102,42 +102,42 @@ export type GlobalMountOptions = {
102
102
config ?: Partial < Omit < AppConfig , 'isNativeTag' > > // isNativeTag is readonly, so we omit it
103
103
/**
104
104
* Applies a mixin for components under testing.
105
- * @see https://vue-test-utils.vuejs.org/v2/ api/#mixins
105
+ * @see https://next. vue-test-utils.vuejs.org/api/#global- mixins
106
106
*/
107
107
mixins ?: ComponentOptions [ ]
108
108
/**
109
109
* Mocks a global instance property.
110
110
* This is designed to mock variables injected by third party plugins, not
111
111
* Vue's native properties such as $root, $children, etc.
112
- * @see https://vue-test-utils.vuejs.org/v2/ api/#mocks
112
+ * @see https://next. vue-test-utils.vuejs.org/api/#global- mocks
113
113
*/
114
114
mocks ?: Record < string , any >
115
115
/**
116
116
* Provides data to be received in a setup function via `inject`.
117
- * @see https://vue-test-utils.vuejs.org/v2/ api/#provide
117
+ * @see https://next. vue-test-utils.vuejs.org/api/#global- provide
118
118
*/
119
119
provide ?: Record < any , any >
120
120
/**
121
121
* Registers components globally for components under testing.
122
- * @see https://vue-test-utils.vuejs.org/v2/ api/#components
122
+ * @see https://next. vue-test-utils.vuejs.org/api/#global- components
123
123
*/
124
124
components ?: Record < string , Component | object >
125
125
/**
126
126
* Registers a directive globally for components under testing
127
- * @see https://vue-test-utils.vuejs.org/v2/ api/#directives
127
+ * @see https://next. vue-test-utils.vuejs.org/api/#global- directives
128
128
*/
129
129
directives ?: Record < string , Directive >
130
130
/**
131
131
* Stubs a component for components under testing.
132
132
* @default "{ transition: true, 'transition-group': true }"
133
- * @see https://vue-test-utils.vuejs.org/v2 /api/#global-stubs
133
+ * @see https://next. vue-test-utils.vuejs.org/api/#global-stubs
134
134
*/
135
135
stubs ?: Record < any , any >
136
136
/**
137
137
* Allows rendering the default slot content, even when using
138
138
* `shallow` or `shallowMount`.
139
139
* @default false
140
- * @see https://vue-test-utils.vuejs.org/v2/ api/#renderstubdefaultslot
140
+ * @see https://next. vue-test-utils.vuejs.org/api/#global- renderstubdefaultslot
141
141
*/
142
142
renderStubDefaultSlot ?: boolean
143
143
}
0 commit comments