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
I have some scenarios where I need (or want) to manually stub a vue component definition so that the definition coming from the import is already a stub. Would exporting this function be something that is worth considering? I think it would be incredibly useful. I also have some legacy tests that use Avoriaz for the time being and in those tests, I actually wrote an unfortunately complex function to build Vue mocks. Exposing this function would allow me to leverage this feature of vue-test-utils right away before I am able to fully transition all those tests to jest/vue-test-utils.
What does the proposed API look like?
I am guessing this is an oversimplification and there are some dependencies I am not seeing, but my hope is the effort is just to export this createStubFromComponent function from the library.
The text was updated successfully, but these errors were encountered:
What problem does this feature solve?
I have some scenarios where I need (or want) to manually stub a vue component definition so that the definition coming from the import is already a stub. Would exporting this function be something that is worth considering? I think it would be incredibly useful. I also have some legacy tests that use Avoriaz for the time being and in those tests, I actually wrote an unfortunately complex function to build Vue mocks. Exposing this function would allow me to leverage this feature of vue-test-utils right away before I am able to fully transition all those tests to jest/vue-test-utils.
What does the proposed API look like?
I am guessing this is an oversimplification and there are some dependencies I am not seeing, but my hope is the effort is just to export this createStubFromComponent function from the library.
The text was updated successfully, but these errors were encountered: