seas-computing / mark-one

A UI component library for building React Apps (in development)
https://seas-computing.github.io/mark-one/
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Add test-utils with custom render method #8

Closed jonseitz closed 5 years ago

jonseitz commented 5 years ago

In order to wrap all of our rendered components in the MarkOneWrapper, we can redefine the render function from @testing-library/react, then create a tsconfig path alias to a new 'test-utils' module that can be used in our tests instead.

See: https://testing-library.com/docs/react-testing-library/setup

codecov[bot] commented 5 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (Feature/62/BasicButton@5a2aaca). Click here to learn what that means. The diff coverage is n/a.

Impacted file tree graph

@@                   Coverage Diff                   @@
##             Feature/62/BasicButton     #8   +/-   ##
=======================================================
  Coverage                          ?   100%           
=======================================================
  Files                             ?      6           
  Lines                             ?     43           
  Branches                          ?      0           
=======================================================
  Hits                              ?     43           
  Misses                            ?      0           
  Partials                          ?      0

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 5a2aaca...80370c9. Read the comment docs.