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

 ✓ src/miniapps/healthpost/healthpostEvents.test.ts > postReferral / extractReferrals (QA happy path - urgent referral case relay) > posts a real healthpost.referral event, readable back via extractReferrals 55ms
 ✓ src/miniapps/healthpost/healthpostEvents.test.ts > postReferral / extractReferrals (QA happy path - urgent referral case relay) > is actually appended to the real signed Event Log, not merely held in memory 8ms
 ✓ src/miniapps/healthpost/healthpostEvents.test.ts > extractReferrals (stale-state - cold-replayed log) > reconstructs referrals purely from a fresh readAll(), with no reliance on prior in-memory state 11ms
 ✓ src/miniapps/healthpost/healthpostEvents.test.ts > extractReferrals (stale-state - cold-replayed log) > ignores unrelated event-log entries (e.g. symptom reports) when extracting referrals 7ms
 ✓ src/miniapps/healthpost/healthpostEvents.test.ts > extractReferrals (QA failure path - malformed/forged payloads never surface a silent referral) > drops an entry whose payload is missing required referral fields 2ms
 ✓ src/miniapps/healthpost/healthpostEvents.test.ts > extractReferrals (QA failure path - malformed/forged payloads never surface a silent referral) > drops an entry whose status is not the honest 'open' value 2ms
 ✓ src/miniapps/healthpost/ReferralQueue.test.tsx > ReferralQueue (QA failure path - zero referrals) > shows an honest empty state rather than a fabricated queue 76ms
 ✓ src/miniapps/healthpost/ReferralQueue.test.tsx > ReferralQueue (QA happy path - a real posted referral is readable on a second device) > renders an open referral reconstructed purely from the replicated Event Log 24ms
 ✓ src/miniapps/healthpost/HealthPostScreen.test.tsx > HealthPostScreen (QA happy path - full exam through the chat UI) > renders the triage result, dispatch-priority recommendation, and both required disclaimers together 177ms
 ✓ src/miniapps/healthpost/HealthPostScreen.test.tsx > HealthPostScreen (QA failure path - zero symptom reports seeded) > shows an honest 'no reports yet' tally state rather than a fabricated placeholder tally 10ms
 ✓ src/miniapps/healthpost/SymptomTallyDashboard.test.tsx > SymptomTallyDashboard (QA failure path - zero reports) > shows an honest 'no reports yet' state rather than a fabricated placeholder tally 73ms
 ✓ src/miniapps/healthpost/SymptomTallyDashboard.test.tsx > SymptomTallyDashboard (QA happy path - seeded reports) > tallies real self-reports into per-symptom counts and a dispatch-priority recommendation, always with the reporting-delay caveat visible 99ms
 ✓ src/miniapps/healthpost/SymptomTallyDashboard.test.tsx > SymptomTallyDashboard (QA happy path - seeded reports) > lets a resident report their own symptom and immediately reflects it in the live tally 45ms
 ✓ src/miniapps/healthpost/TriageChat.test.tsx > TriageChat (QA happy path - documented urgent danger-sign test vector) > classifies a 12-month-old with a danger sign as urgent referral and always shows the informational disclaimer 144ms
 ✓ src/miniapps/healthpost/TriageChat.test.tsx > TriageChat (home-care path - no danger signs, no cough, no diarrhea) > classifies a healthy exam as home care, still with the disclaimer visible 47ms
 ✓ src/miniapps/healthpost/TriageChat.test.tsx > TriageChat (home-care path - no danger signs, no cough, no diarrhea) > never surfaces the 'Send to clinician' button for a low-risk (home_care) result 44ms
 ✓ src/miniapps/healthpost/TriageChat.test.tsx > TriageChat (case-relay-to-clinician loop - QA happy path) > surfaces 'Send to clinician' for an urgent_referral result and posts a real healthpost.referral event readable via extractReferrals 72ms
 ✓ src/miniapps/healthpost/TriageChat.test.tsx > TriageChat (case-relay-to-clinician loop - QA happy path) > surfaces 'Send to clinician' for a needs_treatment result too 74ms
 ✓ src/miniapps/healthpost/TriageChat.test.tsx > TriageChat (malformed input - QA failure path) > surfaces the real MissingExamFieldError honestly and never posts a silent referral when the exam is incomplete 45ms
 ✓ src/miniapps/healthpost/TriageChat.test.tsx > TriageChat (QA failure path - submit is disabled until the exam is complete) > never allows classifying an incomplete exam - the submit control stays disabled 64ms

 Test Files  5 passed (5)
      Tests  20 passed (20)
   Start at  14:43:10
   Duration  967ms (tests 40%, environment 35%, import 16%, transform 5%, setup 4%, worker 1%)


----STDERR----
