fix(tia): drop coverage lines the current file no longer has (#2001)

* fix(tia): drop coverage lines the current file no longer has

An edited file left the previous line numbers in the cache as uncovered,
and a revert did not remove them.

Fixes #1954

* test: update snapshots for skipped stale coverage regression

---------

Co-authored-by: Tiago Santos <tsantos@lynixt.pt>
Co-authored-by: Punyapal Shah <53343069+MrPunyapal@users.noreply.github.com>
Co-authored-by: Punyapal Shah <mrpunyapal@gmail.com>
This commit is contained in:
Tiago Santos
2026-10-31 19:37:56 +00:00
committed by GitHub
parent f66a8e9e93
commit e7a1b483f0
4 changed files with 134 additions and 2 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ test('parallel', function () use ($run): void {
$output = $run('--exclude-group=integration');
$output = implode("\n", array_slice(explode("\n", (string) $output), -10));
$expected = '2 deprecated, 4 warnings, 5 incomplete, 3 notices, 40 todos, 27 skipped, 1602 passed (3524 assertions)';
$expected = '2 deprecated, 4 warnings, 5 incomplete, 3 notices, 40 todos, 28 skipped, 1602 passed (3524 assertions)';
expect($output)
->toContain("Tests: {$expected}")