mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
Extract ANSI escape sequence to a function
This commit is contained in:
@ -6,7 +6,7 @@ test('visual snapshot of help command output', function () {
|
||||
|
||||
$process->run();
|
||||
|
||||
return preg_replace('#\\x1b[[][^A-Za-z]*[A-Za-z]#', '', $process->getOutput());
|
||||
return removeAnsiEscapeSequences($process->getOutput());
|
||||
};
|
||||
|
||||
expect($output())->toMatchSnapshot();
|
||||
|
||||
Reference in New Issue
Block a user