enzymejs/enzyme

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

Open

#2,238 opened on Sep 13, 2019

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

Repository metrics

Stars
 (19,979 stars)
PR merge metrics
 (No merged PRs in 30d)

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