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

Bug/149 mocha caching #38

Closed jonseitz closed 4 years ago

jonseitz commented 4 years ago

This fixes an odd bug where @testing-library/react's cleanup function seems to be getting cached on multiple runs of mocha, resulting in duplicate rendered test data that isn't automatically cleaned up by the library.

Clearing the require cache after each test run should also help keep our tests more isolated.

re: seas-computing/course-planner#149

codecov[bot] commented 4 years ago

Codecov Report

Merging #38 into develop will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           develop    #38   +/-   ##
======================================
  Coverage      100%   100%           
======================================
  Files           19     21    +2     
  Lines          178    222   +44     
  Branches        16     18    +2     
======================================
+ Hits           178    222   +44
Impacted Files Coverage Δ
src/Buttons/BorderlessButton.tsx 100% <100%> (ø)
src/Forms/ValidationErrorMessage.tsx 100% <100%> (ø)
src/Theme/MarkOneTheme.ts 100% <100%> (ø) :arrow_up:
src/Buttons/Button.tsx 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 f2194ce...8932363. Read the comment docs.