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

Enzyme's React.lazy support is reducing coverage #2238

Open
2 of 4 tasks
rodoabad opened this issue Sep 13, 2019 · 4 comments
Open
2 of 4 tasks

Enzyme's React.lazy support is reducing coverage #2238

rodoabad opened this issue Sep 13, 2019 · 4 comments

Comments

@rodoabad
Copy link

rodoabad commented Sep 13, 2019

Current behavior

Screen Shot 2019-08-14 at 11 49 32 AM

Expected behavior

React.lazy line is covered.

Reference: #1917 (comment)

@ljharb created a new issue for you as suggested.

Your environment

API

  • shallow
  • mount
  • render

Version

library version
enzyme 3.10.0
react 16.9.x
react-dom 16.9.x
react-test-renderer 16.9.x
adapter (below)

Adapter

  • enzyme-adapter-react-16
@rodoabad
Copy link
Author

@ljharb any updates on this issue?

@ljharb
Copy link
Member

ljharb commented Oct 26, 2019

@rodoabad no updates yet. Is there any chance you could make a repro repo for this, with as little code as possible? That'd make it much easier to investigate.

@pgangwani
Copy link

pgangwani commented Oct 31, 2019

@rodoabad : just to add even codesandbox link like https://codesandbox.io/s/input-unit-test-enzyme-yb2jq
work too.
Note: Please fork & add your code.

@paul-arthurthiery
Copy link

Just a heads up, I'm still seeing this bug with the same setup

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

No branches or pull requests

4 participants