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 b23854a commit 7690ebbCopy full SHA for 7690ebb
src/vue-testing-library.js
@@ -51,9 +51,12 @@ function render(
51
additionalOptions = configurationCb(vuexStore, router)
52
}
53
54
- if (!mountOptions.propsData && !!mountOptions.props) {
55
- mountOptions.propsData = mountOptions.props
56
- delete mountOptions.props
+ // If `propsData` is provided, rename it to `props`
+ // Since this is gonna be a breaking channge, we can remove the
+ // whole thing.
57
+ if (!mountOptions.props && !!mountOptions.propsData) {
58
+ mountOptions.props = mountOptions.propsData
59
+ delete mountOptions.propsData
60
61
62
const wrapper = mount(TestComponent, {
0 commit comments