mirror of
https://github.com/pestphp/pest.git
synced 2026-07-24 02:20:03 +02:00
fix: package lock fingerprint
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
use Symfony\Component\Process\Process;
|
||||
|
||||
$run = function (string $target, bool $parallel) {
|
||||
$run = function (string $target, bool $parallel): ?string {
|
||||
$process = new Process(['php', 'bin/pest', $target, $parallel ? '--parallel' : ''], dirname(__DIR__, 2),
|
||||
['COLLISION_PRINTER' => 'DefaultPrinter', 'COLLISION_IGNORE_DURATION' => 'true'],
|
||||
['COLLISION_PRINTER' => 'DefaultPrinter', 'COLLISION_IGNORE_DURATION' => 'true', 'PAO_DISABLE' => '1'],
|
||||
);
|
||||
|
||||
$process->run();
|
||||
@@ -13,21 +13,21 @@ $run = function (string $target, bool $parallel) {
|
||||
|
||||
$output = $process->getOutput();
|
||||
|
||||
return preg_replace('/Duration: \d+\.\d+s/', 'Duration: x.xxs', removeAnsiEscapeSequences($output));
|
||||
return preg_replace('/Duration: \d+\.\d+s/', 'Duration: x.xxs', (string) removeAnsiEscapeSequences($output));
|
||||
};
|
||||
|
||||
test('todos', function () use ($run) {
|
||||
test('todos', function () use ($run): void {
|
||||
expect($run('--todos', false))->toMatchSnapshot();
|
||||
})->skipOnWindows()->skip(! getenv('REBUILD_SNAPSHOTS') && getenv('EXCLUDE'));
|
||||
|
||||
test('todos in parallel', function () use ($run) {
|
||||
test('todos in parallel', function () use ($run): void {
|
||||
expect($run('--todos', true))->toMatchSnapshot();
|
||||
})->skipOnWindows()->skip(! getenv('REBUILD_SNAPSHOTS') && getenv('EXCLUDE'));
|
||||
|
||||
test('todo', function () use ($run) {
|
||||
test('todo', function () use ($run): void {
|
||||
expect($run('--todo', false))->toMatchSnapshot();
|
||||
})->skipOnWindows()->skip(! getenv('REBUILD_SNAPSHOTS') && getenv('EXCLUDE'));
|
||||
|
||||
test('todo in parallel', function () use ($run) {
|
||||
test('todo in parallel', function () use ($run): void {
|
||||
expect($run('--todo', true))->toMatchSnapshot();
|
||||
})->skipOnWindows()->skip(! getenv('REBUILD_SNAPSHOTS') && getenv('EXCLUDE'));
|
||||
|
||||
Reference in New Issue
Block a user