Repository navigation
Commit f12c7a0
committed
test(errors): cover the case-conflict warning on a case-sensitive disk
The existing case has it backwards by necessity: it runs only where
`FILE.js` resolves to the committed `file.js`, so the warning is
exercised on a case-insensitive filesystem and the Linux branch asserts
the module-not-found error instead. Every coverage uploader is
ubuntu-latest, so `CaseSensitiveModulesWarning` read 21% -- its message
builder never ran in a run that reported.
Write the colliding pair to a temporary directory instead, which a
checkout cannot hold, and assert the warning a real build emits. Where
the two names are one file the case above already covers it, so the test
returns. Statements, lines and functions go 21% -> 100%.1 parent f0b3540 commit f12c7a0
1 file changed
Lines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
334 | 335 | | |
335 | 336 | | |
336 | 337 | | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
337 | 378 | | |
338 | 379 | | |
339 | 380 | | |
| |||
0 commit comments