We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d22ed7 commit 26db1f6Copy full SHA for 26db1f6
docs/vue-testing-library/api.mdx
@@ -78,6 +78,24 @@ Vue Router is passed, it will be used.
78
79
It will be merged with `propsData`.
80
81
+##### `slots` (`Object`)
82
+
83
+Used to provide slot content when rendering the component. Keys are slot names,
84
+and values can be strings, template snippets, or components, similar to how
85
+[slots](https://test-utils.vuejs.org/api/#slots) are defined in Vue Test Utils.
86
87
+For example:
88
89
+```js
90
+render(MyComponent, {
91
+ slots: {
92
+ default: 'Default',
93
+ first: h('h1', {}, 'Named Slot'),
94
+ second: Bar
95
+ },
96
+})
97
+```
98
99
##### `container` (`HTMLElement`)
100
101
By default, `Vue Testing Library` will create a `div` and append it to the
0 commit comments