We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Initial or later set props are not being passed into a functional component.
To Reproduce I have made a sample repo showcasing the issue here. After cloning the repo you may use the below commands to run the tests.
npm install npm run test
Expected behavior Functional components to receive props from the mount() function.
mount()
Related information:
@vue/test-utils
Vue
node
npm
Additional context The example (and my project itself) are using vite and vitest in conjunction with @vue/test-utils.
vite
vitest
The text was updated successfully, but these errors were encountered:
You need to await setProps
setProps
https://test-utils.vuejs.org/guide/essentials/passing-data.html#using-setprops
Sorry, something went wrong.
You need to await setProps https://test-utils.vuejs.org/guide/essentials/passing-data.html#using-setprops
What about the case of mounting the component giving it props from the start?
chore: Add regression tests for vuejs#1490
92d8eb8
Oh sorry, I missed that. I was able to reproduce it in our unit tests and pushed a fix #1513
fix: Pass props to functional component (#1513)
8bb8a93
* chore: Add regression tests for #1490 * fix: Pass props to functional component
Successfully merging a pull request may close this issue.
Describe the bug
Initial or later set props are not being passed into a functional component.
To Reproduce
I have made a sample repo showcasing the issue here. After cloning the repo you may use the below commands to run the tests.
npm install npm run test
Expected behavior
Functional components to receive props from the
mount()
function.Related information:
@vue/test-utils
version: 2.0.0-rc.21Vue
version: 3.2.33node
version: 16.15.0npm
version: 8.5.5Additional context
The example (and my project itself) are using
vite
andvitest
in conjunction with@vue/test-utils
.The text was updated successfully, but these errors were encountered: