-
Notifications
You must be signed in to change notification settings - Fork 668
Dynamic components are not stubbed by stubs provided in mounting options #1206
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
Comments
@peterkajan it'll work if you set |
Thanks, this works. Not sure if this is only a workaround or the solution. Maybe little more detailed explanation would help. |
@peterkajan @sh7dm can you show solution. I was not able to fix your example |
Here there is fixed version of the test: https://codesandbox.io/s/54j8o43z3l?fontsize=14&module=%2Ftest%2Fshallow-mount-fixed.spec.js The change is on line 19: |
Would like to bump this. I encountered this issue as well and it's not feasible for me to change the component assignments to strings. Can we get an update on whether this is going to be fixed any time soon? |
Version
1.0.0-beta.29
Reproduction link
https://codesandbox.io/s/54j8o43z3l?fontsize=14&module=%2Ftest%2Fshallow-mount.spec.js
Steps to reproduce
Open the reproduction link and see the failing test
What is expected?
ChildComponent to be stubbed with the stub provided in Mounting options:
What is actually happening?
ChildComponent is stubbed by the automatic stub:
The text was updated successfully, but these errors were encountered: