vigetlabs / microcosm

Flux with actions at center stage. Write optimistic updates, cancel requests, and track changes with ease.
http://code.viget.com/microcosm/
MIT License
487 stars 22 forks source link

Run tests against minified build #393

Closed nhunzaker closed 7 years ago

nhunzaker commented 7 years ago

This PR sets up a method on it and describe to disable tests when running a production build. This allows us to test internals for a few modules while minifying private properties in production.

It also adds a plugin to report the output size of modules:

prod-test

codecov-io commented 7 years ago

Codecov Report

Merging #393 into optional-register will increase coverage by <.01%. The diff coverage is 100%.

Impacted file tree graph

@@                  Coverage Diff                  @@
##           optional-register     #393      +/-   ##
=====================================================
+ Coverage              99.77%   99.77%   +<.01%     
=====================================================
  Files                     25       25              
  Lines                    890      891       +1     
=====================================================
+ Hits                     888      889       +1     
  Misses                     2        2
Impacted Files Coverage Δ
src/install-devtools.js 100% <100%> (ø) :arrow_up:

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 b083017...69bbd78. Read the comment docs.