get('/admin/login') ->assertSuccessful() ->assertSee('js/tenantpilot/unhandled-rejection-logger.js', escape: false); }); it('ships a window unhandledrejection logger with structured payload output', function (): void { $js = file_get_contents(public_path('js/tenantpilot/unhandled-rejection-logger.js')); expect($js)->toBeString(); expect($js) ->toContain('__tenantpilotUnhandledRejectionLoggerApplied') ->toContain("window.addEventListener('unhandledrejection'") ->toContain('TenantPilot unhandled promise rejection') ->toContain('JSON.stringify'); });