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

Unwrap HOC components to make shallow render tests more effective #10515

Closed
kumar303 opened this issue Jun 27, 2017 · 1 comment · Fixed by mozilla/addons-frontend#2926
Closed
Assignees
Labels
qa:not_needed repository:addons-frontend Issue relating to addons-frontend
Milestone

Comments

@kumar303
Copy link
Contributor

Since we use shallow Enzyme rendering now we no longer have to test the base (i.e. unwrapped) components. We should be able to introduce a helper that unwraps them automatically.

Example: mozilla/addons-frontend#2618 (comment)

@kumar303
Copy link
Contributor Author

Enzyme doesn't have great support for doing this kind of unwrapping: enzymejs/enzyme#539

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
qa:not_needed repository:addons-frontend Issue relating to addons-frontend
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants