This commit is contained in:
nuno maduro
2026-04-22 09:03:10 -07:00
parent 660b57b365
commit d9c18f9c02
4 changed files with 72 additions and 41 deletions

View File

@ -5,18 +5,18 @@ declare(strict_types=1);
use Pest\TestsTia\Support\Sandbox;
/*
* `--tia-rebuild` short-circuits whatever graph is on disk and records
* `--tia --fresh` short-circuits whatever graph is on disk and records
* from scratch. Used when the user knows the cache is wrong.
*/
test('--tia-rebuild forces record mode even with a valid graph', function () {
test('--tia --fresh forces record mode even with a valid graph', function () {
tiaScenario(function (Sandbox $sandbox) {
$sandbox->pest(['--tia']);
expect($sandbox->hasGraph())->toBeTrue();
$graphBefore = $sandbox->graph();
$process = $sandbox->pest(['--tia', '--tia-rebuild']);
$process = $sandbox->pest(['--tia', '--fresh']);
expect($process->isSuccessful())->toBeTrue(tiaOutput($process));
expect(tiaOutput($process))->toContain('recording dependency graph');