mirror of
https://github.com/pestphp/pest.git
synced 2026-12-03 22:45:06 +01:00
b5851d67ff
* fix(tia): run the full suite when code the project loads from outside its root changes * test(tia): cover the configuration fingerprint of a nested project * fix(tia): run the full suite when a declared external root holds files git ignores * fix(tia): track ignored inputs under external roots by content hash * fix(tia): harden external source tracking from the review loop * test: update the suite totals for the external source tests --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
636 B
PHP
23 lines
636 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Tests\Fixtures\Tia\Project;
|
|
|
|
afterEach(function (): void {
|
|
Project::destroyAll();
|
|
});
|
|
|
|
test('a run without tia finishes when git cannot read the working tree', function (): void {
|
|
$project = Project::make('master');
|
|
$project->seed('master');
|
|
|
|
file_put_contents($project->path('.git/index'), 'not an index');
|
|
|
|
$result = $project->pest();
|
|
|
|
expect($result->exitCode)->toBe(0, $result->describe())
|
|
->and($result->output)->not->toContain('could not read the git repository')
|
|
->and($result->tally())->toContain(Project::TOTAL_TESTS.' passed');
|
|
})->skipOnWindows();
|