Skip to content

Commit 7d29801

Browse files
38elementseddyerburgh
authored andcommitted
docs: add link for propsData (#947)
1 parent bd9742c commit 7d29801

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: docs/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Vue Test Utils is the official unit testing utility library for Vue.js.
2828
- [localVue](api/options.md#localvue)
2929
- [attachToDocument](api/options.md#attachtodocument)
3030
- [attrs](api/options.md#attrs)
31+
- [propsData](api/options.md#propsdata)
3132
- [listeners](api/options.md#listeners)
3233
- [parentComponent](api/options.md#parentComponent)
3334
- [provide](api/options.md#provide)

Diff for: docs/api/options.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ Set the component instance's `$attrs` object.
211211

212212
- type: `Object`
213213

214-
Set the component instance's props.
214+
Set the component instance's props when the component is mounted.
215215

216216
Example:
217217

@@ -230,7 +230,8 @@ expect(wrapper.text()).toBe('aBC')
230230

231231
::: tip
232232
It's worth noting that `propsData` is actually a [Vue API](https://vuejs.org/v2/api/#propsData), not a
233-
`vue-test-utils` option. It is processed through [`extends`](#other-options).
233+
Vue Test Utils mounting option. It is processed through [`extends`](https://vuejs.org/v2/api/#extends).
234+
Please see [Other options](#other-options).
234235
:::
235236

236237
## listeners

0 commit comments

Comments
 (0)