$ npx vitest run src/lib/skyMorale.test.ts src/miniapps/sky --reporter=verbose
(exit code: 0)


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

 ✓ src/lib/skyMorale.test.ts > isSkyMoralePulsePayload > accepts a well-formed morale pulse payload, with or without a note 37ms
 ✓ src/lib/skyMorale.test.ts > isSkyMoralePulsePayload > rejects a malformed mood value, a different event type, or a non-string note 4ms
 ✓ src/lib/skyMorale.test.ts > postMoralePulse > rejects a malformed mood value before append() is ever called 5ms
 ✓ src/lib/skyMorale.test.ts > postMoralePulse > signs and appends a valid pulse to the shared Event Log, readable back verbatim 8ms
 ✓ src/lib/skyMorale.test.ts > postMoralePulse > trims a note and omits it entirely when it is blank 7ms
 ✓ src/lib/skyMorale.test.ts > postMoralePulse > ignores entries belonging to other event types during extraction 6ms
 ✓ src/lib/skyMorale.test.ts > latestMoralePulse + aggregateMoraleCounts > is correct on a cold replay: latest by Lamport order and an accurate per-mood tally 15ms
 ✓ src/lib/skyMorale.test.ts > latestMoralePulse + aggregateMoraleCounts > returns undefined for the latest pulse when none have been posted 2ms
 ✓ src/miniapps/sky/SkyScreen.test.tsx > SkyScreen (QA happy path - real sky state, real presence, real memory wall) > renders the sky state for the injected clock and the roster-backed presence count 77ms
 ✓ src/miniapps/sky/SkyScreen.test.tsx > SkyScreen (QA happy path - real sky state, real presence, real memory wall) > honestly shows a presence count of 1 in a solo session with zero other roster peers 10ms
 ✓ src/miniapps/sky/SkyScreen.test.tsx > SkyScreen (QA happy path - real sky state, real presence, real memory wall) > renders real posted memory wall entries from the shared Event Log, not fabricated ones 23ms
 ✓ src/miniapps/sky/SkyScreen.test.tsx > SkyScreen (QA happy path - real sky state, real presence, real memory wall) > renders the honest empty state before any memory wall entry has been posted 8ms
 ✓ src/miniapps/sky/SkyScreen.test.tsx > SkyScreen (QA happy path - real sky state, real presence, real memory wall) > signs and appends a new memory wall entry through the real Event Log on submit 119ms
 ✓ src/miniapps/sky/SkyScreen.test.tsx > SkyScreen (QA happy path - real sky state, real presence, real memory wall) > does not double-post when the submit button is clicked twice synchronously 27ms
 ✓ src/miniapps/sky/SkyScreen.test.tsx > SkyScreen (QA happy path - real sky state, real presence, real memory wall) > rejects an empty-text submission without posting to the Event Log 15ms
 ✓ src/miniapps/sky/SkyScreen.test.tsx > SkyScreen (QA happy path - real sky state, real presence, real memory wall) > renders the honest empty state before any mood pulse has been posted 6ms
 ✓ src/miniapps/sky/SkyScreen.test.tsx > SkyScreen (QA happy path - real sky state, real presence, real memory wall) > signs and appends a new mood pulse through the real Event Log on submit, updating the latest pulse and aggregate count 101ms
 ✓ src/miniapps/sky/SkyScreen.test.tsx > SkyScreen (QA happy path - real sky state, real presence, real memory wall) > displays a posted note's raw text verbatim via React's default escaping, never as markup 19ms
 ✓ src/miniapps/sky/SkyScreen.test.tsx > SkyScreen (QA happy path - real sky state, real presence, real memory wall) > counts multiple real pulses correctly in the aggregate, honoring cold-replay Event Log data 21ms

 Test Files  2 passed (2)
      Tests  19 passed (19)
   Start at  14:37:08
   Duration  958ms (tests 49%, environment 19%, import 15%, transform 13%, setup 4%, worker 1%)


