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

Add support for Lazy, Memo and Suspense, bump deps #120

Merged
merged 1 commit into from Dec 4, 2018

Conversation

xkxd
Copy link
Contributor

@xkxd xkxd commented Dec 3, 2018

We needed that, so I decided to implement missing stuff from React 16.6 (at least until Enzyme will not support it in easier/different way)

Added:

  • React.lazy => resolves to <React.Lazy>
  • React.memo => resolves to <React.Memo>
  • React.Suspense=> resolves to <React.Suspense>

Removed/Changed (because of enzyme's update):

  • React.Fragment resolves to <Fragment> + child fragments are not visible in snapshots
  • Array => renders differently

@codecov
Copy link

codecov bot commented Dec 3, 2018

Codecov Report

Merging #120 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #120   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           6      6           
  Lines         102    104    +2     
  Branches       39     40    +1     
=====================================
+ Hits          102    104    +2
Impacted Files Coverage Δ
src/shallow.js 100% <ø> (ø) ⬆️
src/utils.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c56fbaf...b92bd14. Read the comment docs.

@adriantoine
Copy link
Owner

Hi @xkxd! Thank you very much for your PR, it looks good to me. I'll make a new release today.

@adriantoine adriantoine merged commit 2f81766 into adriantoine:master Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants