enzymejs / enzyme

JavaScript Testing utilities for React
https://enzymejs.github.io/enzyme/
MIT License
19.95k stars 2.01k forks source link

[Tests] add shared lifecycle tests; move identical tests to shared #2486

Closed ljharb closed 3 years ago

ljharb commented 3 years ago

This PR consolidates duplicate tests into shared ones, as well as improving the spy output so failures are easier to debug.

codecov[bot] commented 3 years ago

Codecov Report

Merging #2486 (9c92f91) into master (ab7d20d) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2486   +/-   ##
=======================================
  Coverage   96.12%   96.12%           
=======================================
  Files          49       49           
  Lines        4004     4004           
  Branches     1123     1123           
=======================================
  Hits         3849     3849           
  Misses        155      155           

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 ab7d20d...9c92f91. Read the comment docs.