enzymejs/enzyme

Enzyme's `React.lazy` support is reducing coverage

Open

#2238 opened on Sep 13, 2019

View on GitHub
 (4 comments) (6 reactions) (0 assignees)JavaScript (19,979 stars) (2,016 forks)batch import
help wanted

Description

Current behavior

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

Expected behavior

React.lazy line is covered.

Reference: https://github.com/airbnb/enzyme/issues/1917#issuecomment-521326956

@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

Contributor guide