chore: fixes snapshots

This commit is contained in:
Nuno Maduro
2024-09-02 18:30:12 +01:00
parent 5ae5ac9a54
commit bb8677549a
7 changed files with 23 additions and 23 deletions

View File

@ -19,9 +19,9 @@
↓ something todo later ↓ something todo later
↓ something todo later chained ↓ something todo later chained
↓ something todo later chained and with function body ↓ something todo later chained and with function body
↓ it may have an associated assignee []8;;https://github.com/nunomaduro\@nunomaduro]8;;\] ↓ it may have an associated assignee [@nunomaduro]
↓ it may have an associated issue ]8;;https://github.com/pestphp/pest/issues/1\#1]8;;\ ↓ it may have an associated issue #1
↓ it may have an associated PR ]8;;https://github.com/pestphp/pest/pull/1\#1]8;;\ ↓ it may have an associated PR #1
↓ it may have an associated note ↓ it may have an associated note
// a note // a note

View File

@ -19,9 +19,9 @@
↓ something todo later ↓ something todo later
↓ something todo later chained ↓ something todo later chained
↓ something todo later chained and with function body ↓ something todo later chained and with function body
↓ it may have an associated assignee []8;;https://github.com/nunomaduro\@nunomaduro]8;;\] ↓ it may have an associated assignee [@nunomaduro]
↓ it may have an associated issue ]8;;https://github.com/pestphp/pest/issues/1\#1]8;;\ ↓ it may have an associated issue #1
↓ it may have an associated PR ]8;;https://github.com/pestphp/pest/pull/1\#1]8;;\ ↓ it may have an associated PR #1
↓ it may have an associated note ↓ it may have an associated note
// a note // a note

View File

@ -19,9 +19,9 @@
↓ something todo later ↓ something todo later
↓ something todo later chained ↓ something todo later chained
↓ something todo later chained and with function body ↓ something todo later chained and with function body
↓ it may have an associated assignee []8;;https://github.com/nunomaduro\@nunomaduro]8;;\] ↓ it may have an associated assignee [@nunomaduro]
↓ it may have an associated issue ]8;;https://github.com/pestphp/pest/issues/1\#1]8;;\ ↓ it may have an associated issue #1
↓ it may have an associated PR ]8;;https://github.com/pestphp/pest/pull/1\#1]8;;\ ↓ it may have an associated PR #1
↓ it may have an associated note ↓ it may have an associated note
// a note // a note

View File

@ -19,9 +19,9 @@
↓ something todo later ↓ something todo later
↓ something todo later chained ↓ something todo later chained
↓ something todo later chained and with function body ↓ something todo later chained and with function body
↓ it may have an associated assignee []8;;https://github.com/nunomaduro\@nunomaduro]8;;\] ↓ it may have an associated assignee [@nunomaduro]
↓ it may have an associated issue ]8;;https://github.com/pestphp/pest/issues/1\#1]8;;\ ↓ it may have an associated issue #1
↓ it may have an associated PR ]8;;https://github.com/pestphp/pest/pull/1\#1]8;;\ ↓ it may have an associated PR #1
↓ it may have an associated note ↓ it may have an associated note
// a note // a note

View File

@ -1551,12 +1551,12 @@
- visual snapshot of team city with ('SuccessOnly.php') - visual snapshot of team city with ('SuccessOnly.php')
WARN Tests\Visual\Todo WARN Tests\Visual\Todo
todos → Snapshot created at [tests/.pest/snapshots/Visual/Todo/todos.snap] - todos
todos in parallel → Snapshot created at [tests/.pest/snapshots/Visual/Todo/todos_in_parallel.snap] - todos in parallel
todo → Snapshot created at [tests/.pest/snapshots/Visual/Todo/todo.snap] - todo
todo in parallel → Snapshot created at [tests/.pest/snapshots/Visual/Todo/todo_in_parallel.snap] - todo in parallel
WARN Tests\Visual\Version WARN Tests\Visual\Version
- visual snapshot of help command output - visual snapshot of help command output
Tests: 2 deprecated, 4 warnings, 9 incomplete, 2 notices, 17 todos, 24 skipped, 1079 passed (2613 assertions) Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 17 todos, 28 skipped, 1079 passed (2609 assertions)

View File

@ -12,7 +12,7 @@ test('visual snapshot of test suite on success', function () {
$process = (new Symfony\Component\Process\Process( $process = (new Symfony\Component\Process\Process(
['php', 'bin/pest'], ['php', 'bin/pest'],
dirname($testsPath), dirname($testsPath),
['EXCLUDE' => 'integration', 'REBUILD_SNAPSHOTS' => false, 'PARATEST' => 0, 'COLLISION_PRINTER' => 'DefaultPrinter', 'COLLISION_IGNORE_DURATION' => 'true'], ['EXCLUDE' => 'integration', '--exclude-group' => 'integration', 'REBUILD_SNAPSHOTS' => false, 'PARATEST' => 0, 'COLLISION_PRINTER' => 'DefaultPrinter', 'COLLISION_IGNORE_DURATION' => 'true'],
)); ));
$process->run(); $process->run();

View File

@ -3,7 +3,7 @@
use Symfony\Component\Process\Process; use Symfony\Component\Process\Process;
$run = function (string $target, bool $parallel) { $run = function (string $target, bool $parallel) {
$process = new Process(['php', 'bin/pest', $target, $parallel ? '--parallel' : '', '--colors=always'], dirname(__DIR__, 2), $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'],
); );
@ -18,16 +18,16 @@ $run = function (string $target, bool $parallel) {
test('todos', function () use ($run) { test('todos', function () use ($run) {
expect($run('--todos', false))->toMatchSnapshot(); expect($run('--todos', false))->toMatchSnapshot();
})->skipOnWindows(); })->skipOnWindows()->skip(! getenv('REBUILD_SNAPSHOTS') && getenv('EXCLUDE'));
test('todos in parallel', function () use ($run) { test('todos in parallel', function () use ($run) {
expect($run('--todos', true))->toMatchSnapshot(); expect($run('--todos', true))->toMatchSnapshot();
})->skipOnWindows(); })->skipOnWindows()->skip(! getenv('REBUILD_SNAPSHOTS') && getenv('EXCLUDE'));
test('todo', function () use ($run) { test('todo', function () use ($run) {
expect($run('--todo', false))->toMatchSnapshot(); expect($run('--todo', false))->toMatchSnapshot();
})->skipOnWindows(); })->skipOnWindows()->skip(! getenv('REBUILD_SNAPSHOTS') && getenv('EXCLUDE'));
test('todo in parallel', function () use ($run) { test('todo in parallel', function () use ($run) {
expect($run('--todo', true))->toMatchSnapshot(); expect($run('--todo', true))->toMatchSnapshot();
})->skipOnWindows(); })->skipOnWindows()->skip(! getenv('REBUILD_SNAPSHOTS') && getenv('EXCLUDE'));