mirror of
https://github.com/archtechx/tenancy.git
synced 2026-05-07 06:54:03 +00:00
Clean up nested log files created by tests
This commit is contained in:
parent
c2a80c248f
commit
2f60e7672e
1 changed files with 6 additions and 2 deletions
|
|
@ -22,7 +22,9 @@ beforeEach(function () {
|
|||
|
||||
$logFiles = array_merge(
|
||||
glob(storage_path('logs/*.log')) ?: [],
|
||||
glob(storage_path('tenant*/logs/*.log')) ?: []
|
||||
glob(storage_path('logs/*/*.log')) ?: [],
|
||||
glob(storage_path('tenant*/logs/*.log')) ?: [],
|
||||
glob(storage_path('tenant*/logs/*/*.log')) ?: []
|
||||
);
|
||||
|
||||
foreach ($logFiles as $path) {
|
||||
|
|
@ -43,7 +45,9 @@ afterEach(function () {
|
|||
|
||||
$logFiles = array_merge(
|
||||
glob(storage_path('logs/*.log')) ?: [],
|
||||
glob(storage_path('tenant*/logs/*.log')) ?: []
|
||||
glob(storage_path('logs/*/*.log')) ?: [],
|
||||
glob(storage_path('tenant*/logs/*.log')) ?: [],
|
||||
glob(storage_path('tenant*/logs/*/*.log')) ?: []
|
||||
);
|
||||
|
||||
foreach ($logFiles as $path) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue