You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to be able to test custom components from the template area while stubbed. For example, lets say I have the following: <customComponent @click="runRandomMethod" class="randomClass"><\customComponet> in my class and customComponent.vue has a bunch of properties, mapGetters and methods.
I don't care about the required props in another class or the methods so I would shallowMount it but the issue with this is I can't find the component to trigger a click event that would run "runRandomMethod()". I think it would be nice to somehow keep the events (things that start with @) and keep the props we send (things that start with :) and anything else like class so that we can test if another user accidentally changes something important there e.g. mispelling runRandomMethod.
Let me know if anything I said is confusion I would be happy to elaborate.
Suggested solution
I'm not sure, you would have to change what stubbing returns I guess.
Clear and concise description of the problem
It would be great to be able to test custom components from the template area while stubbed. For example, lets say I have the following:
<customComponent @click="runRandomMethod" class="randomClass"><\customComponet>
in my class and customComponent.vue has a bunch of properties, mapGetters and methods.I don't care about the required props in another class or the methods so I would shallowMount it but the issue with this is I can't find the component to trigger a click event that would run "runRandomMethod()". I think it would be nice to somehow keep the events (things that start with @) and keep the props we send (things that start with :) and anything else like class so that we can test if another user accidentally changes something important there e.g. mispelling runRandomMethod.
Let me know if anything I said is confusion I would be happy to elaborate.
Suggested solution
I'm not sure, you would have to change what stubbing returns I guess.
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: