File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ describe('Foo', () => {
116
116
it (' renders a div' , () => {
117
117
const wrapper = mount (Foo, {
118
118
stubs: {
119
- Bar: ' <div class="stubbed" />' ,
119
+ Bar: ' <div class="stubbed" />' , // DEPRECATED
120
120
BarFoo: true ,
121
121
FooBar: Faz
122
122
}
Original file line number Diff line number Diff line change @@ -208,10 +208,13 @@ const wrapper = mount(WrapperComp).find(ComponentUnderTest)
208
208
209
209
## stubs
210
210
211
- - type: ` { [name: string]: Component | boolean } | Array<string> `
211
+ - type: ` { [name: string]: Component | string | boolean } | Array<string> `
212
212
213
213
Stubs child components. Can be an Array of component names to stub, or an object. If ` stubs ` is an Array, every stub is ` <${component name}-stub> ` .
214
214
215
+ Depercation note:
216
+ If declaring an object, string stubs are now deprecated and will be removed in a future version.
217
+
215
218
Example:
216
219
217
220
``` js
You can’t perform that action at this time.
0 commit comments