update snapshot for running tests with failed classnames

This commit is contained in:
jordanbrauer
2021-02-13 12:12:32 -06:00
parent fe2fac37f8
commit 9426d08aa2
2 changed files with 29 additions and 2 deletions

View File

@ -13,7 +13,13 @@ test('visual snapshot of test suite on success', function () {
$process->run();
return preg_replace('#\\x1b[[][^A-Za-z]*[A-Za-z]#', '', $process->getOutput());
return preg_replace([
'#\\x1b[[][^A-Za-z]*[A-Za-z]#',
'/(Tests\\\PHPUnit\\\CustomAffixes\\\InvalidTestName)([A-Za-z0-9]*)/'
], [
'',
'$1'
], $process->getOutput());
};
if (getenv('REBUILD_SNAPSHOTS')) {