Jest code coverage
March 03, 2018
I was experiencing a lot of frustration with coverage and jest this weekend. I would write tests but the coverage was not going up. Turns out theres a cache.
I tried adding
–no-cacheand it would but as soon as I removed the flag I’d be back to square one. There is another option
–clearCachewhich worked a treat