mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-02-23 14:59:07 +08:00
Fix tests
This commit is contained in:
parent
3d3e488443
commit
016e11b40b
@ -39,8 +39,11 @@ class Handler extends ExceptionHandler
|
||||
return $trace;
|
||||
})
|
||||
->filter(function ($trace) {
|
||||
return Str::startsWith($trace['file'], 'app') ||
|
||||
// @codeCoverageIgnoreStart
|
||||
$isFromPlugins = ! app()->runningUnitTests() &&
|
||||
Str::contains($trace['file'], resolve('plugins')->getPluginsDirs()->all());
|
||||
// @codeCoverageIgnoreEnd
|
||||
return Str::startsWith($trace['file'], 'app') || $isFromPlugins;
|
||||
})
|
||||
->values(),
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user