diff --git a/src/Support/Backtrace.php b/src/Support/Backtrace.php index 6dc38828..f08ecd6e 100644 --- a/src/Support/Backtrace.php +++ b/src/Support/Backtrace.php @@ -115,7 +115,7 @@ private static function backtrace(): array continue; } - if (str_contains($trace['file'], 'pest'.DIRECTORY_SEPARATOR.'src')) { + if (str_contains($trace['file'], DIRECTORY_SEPARATOR.'pestphp'.DIRECTORY_SEPARATOR.'pest'.DIRECTORY_SEPARATOR.'src')) { continue; }