1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-05-06 16:24:03 +00:00

Clean up nested log files created by tests

This commit is contained in:
lukinovec 2026-04-14 14:40:00 +02:00
parent c2a80c248f
commit 2f60e7672e

View file

@ -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) {