mirror of
https://github.com/pestphp/pest.git
synced 2026-06-05 02:52:12 +02:00
41 lines
941 B
PHP
41 lines
941 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pest\Plugins\Tia\WatchDefaults;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final readonly class Php implements WatchDefault
|
|
{
|
|
public function applicable(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function defaults(string $projectRoot, string $testPath): array
|
|
{
|
|
return [
|
|
'.env' => [$testPath],
|
|
'.env.testing' => [$testPath],
|
|
'.env.local' => [$testPath],
|
|
'.env.*.local' => [$testPath],
|
|
|
|
'docker-compose.yml' => [$testPath],
|
|
'docker-compose.yaml' => [$testPath],
|
|
|
|
'phpunit.xml.dist' => [$testPath],
|
|
|
|
$testPath.'/Pest.php' => [$testPath],
|
|
|
|
$testPath.'/Datasets/**/*.php' => [$testPath],
|
|
|
|
$testPath.'/Fixtures/**/*' => [$testPath],
|
|
$testPath.'/**/Fixtures/**/*' => [$testPath],
|
|
|
|
$testPath.'/.pest/snapshots/**/*.snap' => [$testPath],
|
|
];
|
|
}
|
|
}
|