-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
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
chore: add test for nested v-model #2469
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for vue-test-utils-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@tharvik, I hope you're fine, could you edit your pull request to pass the CI? |
this PR is meant to fail, it servers to show the issue underlined in #2468. |
@cexbrayat, @lmiller1990, is there already any solution for this problem? |
@nazarepiedady No, I think Lachlan and I don't really have time to look into it, so you're welcome to try! |
@cexbrayat, I will try it as soon as I finish something I am doing now. |
Good to have a reproduction for a known bug. I think using If someone wants to fix this, that would be great - this is the API we support, after all. I suspect you will need some hacks to do it, further complicating the code base. This indicates this kind of test and API is probably not the best idea. Context for my opinion: I am working on a code base right now that has hundreds of these types of tests ( |
any update on that? I came back today to bite me again and the workaround I was using is not working for deeper v-model. |
@lmiller1990, @cexbrayat, in your opinion, is a good idea to close this pull request and let a reminder on the documentation about why this is not a good idea? |
Did you understand the point presented by @lmiller1990? |
I did.
yeah, I agree, and totally get that it makes it harder to change the implementation. but as I want to test a component wrapping a form made of many custom fields. I can either set the value of every single field, or just set the resulting form model which is way more readable. FWIW: I've got a bunch of layers of v-model, each making a bit of the needed parsing (it's transforming inputed values as it updates along the hierarchy), smth around the line of
it all depends on the needs of projects. if
well, I find it pretty undelicate to tell devs that's their code is badly though of. they are the most knowledgable on their codebase and what are its specific needs. |
@tharvik, is there any specification or documentation that says that this interface should work the way you're pointing? |
@cexbrayat, @lmiller1990 is @tharvik, right? Is this a bug? |
reproduction as test for #2468, read there for context.