Closed mantoni closed 5 years ago
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
formatio.js | 8 | 82.24% | ||
<!-- | Total: | 8 | --> |
Totals | |
---|---|
Change from base Build 105: | -0.2% |
Covered Lines: | 95 |
Relevant Lines: | 113 |
I have the same issue with code coverage on my PR now. What is your suggestion for handling this, @mantoni? Should we actually use sinon to stub getOwnPropertySymbols
to undefined for this test case?
No. That'd be cheating just for the statistics. If we want to increase coverage for these cases, we'd have to use Mochify and run tests in headless chrome and generate the coverage report there instead of on node.
Do you recommend using Mochify or changing the threshold? I plan on applying whatever change you make here to my PR.
We don't have a treshold configured. It just marks any coverage decrese as a potential issue, I think. So I'm not directly planning to do anything about it 😄
Currently, the build checks are failing. Is the plan to override them and just merge?
The build checks don't prevent merging. I see coverage information as hint. If it drops dramatically, there's something wrong. It's not a hard requirement to always keep the previous value up.
Released in v3.2.1
.
Purpose (TL;DR) - mandatory
This fixes an IE 11 regression introduced in #26.
Object.getOwnPropertySymbols
is not supported in all environments.How to verify - mandatory
npm install
npm t
Checklist for author
npm run lint
passes