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