Skip to content

Default Props are undefined after shallowMount/mount #705

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

Closed
trollepierre opened this issue Jun 12, 2018 · 1 comment
Closed

Default Props are undefined after shallowMount/mount #705

trollepierre opened this issue Jun 12, 2018 · 1 comment
Labels

Comments

@trollepierre
Copy link
Contributor

Version

1.0.0-beta.18

Reproduction link

https://codesandbox.io/s/mqk9pnr34j

Steps to reproduce

Create a component with defaults props.
In the test, mount or shallowMount the component and try to test default props with wrapper.props()

What is expected?

I expected same behavior than beta 16, to get defaultProps

What is actually happening?

I get undefined instead

@trollepierre
Copy link
Contributor Author

Bug that appears in beta 17 also (but it was ok in beta 16)

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

No branches or pull requests

2 participants