Command: cd /home/athapa/patriothacks-wt/fix-miniapp-gaps-and-demo-video-wave1 && npx vitest run src/miniapps/lightclock src/lib/lightclock.test.ts --reporter=verbose
Exit code: 0
Date: 2026-11-18T19:34:13.634Z

--- stdout ---

 RUN  v5.1.0 /home/athapa/patriothacks-wt/fix-miniapp-gaps-and-demo-video-wave1

 ✓ src/lib/lightclock.test.ts > lightDrive (alpha) > is zero in darkness 2ms
 ✓ src/lib/lightclock.test.ts > lightDrive (alpha) > matches the Hill-function reference value at 500 lux 0ms
 ✓ src/lib/lightclock.test.ts > hannay19Derivative > matches the independently hand-computed derivative at the default initial condition in darkness 0ms
 ✓ src/lib/lightclock.test.ts > hannay19Derivative > matches the independently hand-computed derivative at the default initial condition under 500 lux 0ms
 ✓ src/lib/lightclock.test.ts > rk4Step > matches the independently hand-computed one-minute RK4 step under 500 lux 0ms
 ✓ src/lib/lightclock.test.ts > clockPhase > wraps Psi into (-pi, pi] 0ms
 ✓ src/lib/lightclock.test.ts > simulateHannay19 > matches the independently hand-computed amplitude/adaptation after 10 days of a 16L/8D schedule 18ms
 ✓ src/lib/lightclock.test.ts > simulateHannay19 > keeps the amplitude within the model's physically bounded entrainment range 145ms
 ✓ src/lib/lightclock.test.ts > simulateHannay19 > advances phase forward at roughly the free-running base rate 2*pi/tau per hour 12ms
 ✓ src/lib/lightclock.test.ts > simulateHannay19 > rejects an empty exposure time series 1ms
 ✓ src/lib/lightclock.test.ts > estimateDlmoHours > finds a CBTmin-offset DLMO crossing within each ~24h cycle of a multi-day run 12ms
 ✓ src/lib/lightclock.test.ts > recommendLightTiming > derives nextDlmoHour and a seek/avoid-light window pair consistent with the known estimateDlmoHours fixture 14ms
 ✓ src/lib/lightclock.test.ts > recommendLightTiming > returns the explicit insufficient-data state, never a fabricated recommendation, when the trace has no DLMO crossing 1ms
 ✓ src/miniapps/lightclock/LightClockScreen.test.tsx > LightClockScreen (plan todo 46, QA happy path) > renders the local-only disclaimer banner regardless of which data path is active 19ms
 ✓ src/miniapps/lightclock/LightClockScreen.test.tsx > LightClockScreen (plan todo 46, QA happy path) > falls back to the manual-entry form, computes real status from typed log rows, and never fabricates a sample 41ms
 ✓ src/miniapps/lightclock/LightClockScreen.test.tsx > LightClockScreen (plan todo 46, QA happy path) > rejects a non-numeric manual-entry row instead of silently adding a placeholder 7ms
 ✓ src/miniapps/lightclock/LightClockScreen.test.tsx > LightClockScreen (plan todo 46, QA happy path) > subscribes to the real sensor stream and computes status from actually-received samples when permission is granted 8ms

 Test Files  2 passed (2)
      Tests  17 passed (17)
   Start at  14:34:13
   Duration  474ms (tests 44%, environment 32%, import 12%, setup 6%, transform 5%, worker 2%)


--- stderr ---
