feat(tia): let a project leave paths out of read capture (#2030)

* feat(tia): let a project leave paths out of read capture

* Verify TIA watch fallbacks and refresh snapshots

---------

Co-authored-by: Sylvain Valienne <2300259+sylouuu@users.noreply.github.com>
Co-authored-by: Punyapal Shah <53343069+MrPunyapal@users.noreply.github.com>
This commit is contained in:
Syl
2026-11-20 14:11:03 +01:00
committed by GitHub
parent fdc57f77b7
commit 41af35a3f2
8 changed files with 366 additions and 3 deletions
+13
View File
@@ -115,4 +115,17 @@ final class Configuration
return $this;
}
/**
* @param list<string>|null $patterns Project-relative globs to exclude, or null to disable read capture. Use watch() for excluded files that an existing watch pattern does not cover.
* @return $this
*/
public function withoutReadCapture(?array $patterns = null): self
{
/** @var WatchPatterns $watchPatterns */
$watchPatterns = Container::getInstance()->get(WatchPatterns::class);
$watchPatterns->excludeReads($patterns);
return $this;
}
}