Commit 720da56
committed
refactor: Correct under-reported code coverage for Options/parsers
buildConfigDefinitions imported parsers from ../src/Options/parsers at
module scope. Loading it in a spec instruments the real src file a
second time (top level only), colliding with the sourcemap-remapped lib
coverage from parsers.spec.js and clobbering it down to ~2.5%. Move the
require into parseDefaultValue, its only consumer, so the module reports
its true 100%.1 parent 7e9d53a commit 720da56
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
190 | 189 | | |
191 | 190 | | |
192 | 191 | | |
| 192 | + | |
| 193 | + | |
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
| |||
0 commit comments