kentcdodds / react-testing-library-course

Test React Components with Jest and React Testing Library on TestingJavaScript.com
https://testingjavascript.com/playlists/test-react-components-with-jest-and-react-testing-library-72cf
Other
1.09k stars 379 forks source link

removing unnessary spread #23

Closed opauloh closed 3 years ago

opauloh commented 3 years ago

Since history is not being exposed anymore, there is no need to spread the return object here. This could potentially lead to a misunderstanding that spreading the return is always necessary when creating a custom render

codecov[bot] commented 3 years ago

Codecov Report

Merging #23 (357a408) into master (46d2608) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #23   +/-   ##
=======================================
  Coverage   90.69%   90.69%           
=======================================
  Files          23       23           
  Lines         215      215           
  Branches       13       13           
=======================================
  Hits          195      195           
  Misses         19       19           
  Partials        1        1           

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 46d2608...357a408. Read the comment docs.