Skip to content
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

feat: add abstract property to the core property of the component #1716

Merged
merged 1 commit into from Oct 28, 2020

Conversation

ustbhuangyi
Copy link
Contributor

@ustbhuangyi ustbhuangyi commented Oct 15, 2020

Since the Transition component is an abstract component, and we use stub to simulate it. If the abstract property is not copied, and if the Transition component is used inside the tested component, the parent-child relationship of the internal component tree will be incorrect.

@lmiller1990
Copy link
Member

Hm, ok! Not super clear on this - can you share an example of a test that is incorrect before this change?

@ustbhuangyi
Copy link
Contributor Author

@lmiller1990 Here is the example repo: https://github.com/ustbhuangyi/vue-test-utils-demo

@lmiller1990 lmiller1990 merged commit 8c56db6 into vuejs:dev Oct 28, 2020
@lmiller1990
Copy link
Member

I will do a release this weekend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants