mailship/test
Agent ae836da033
All checks were successful
CI / checks (pull_request) Successful in 34s
fix: load reply/reaction events from repository into digest context
Instead of setting context = events (which made repliesByParentId always
empty), query the repository for events that #e-tag our matched event
IDs with kinds NOTE, COMMENT, or REACTION. This gives buildParameters
real reply/reaction data to count.

Fixes the bug where every event in the digest email showed
'0 replies / 0 reactions'.

Added test/digest-reply-stats.test.ts that:
- Publishes reply and reaction events into a mock repository
- Calls sendFromStoredEvents with only the parent event
- Asserts that the resulting digest parameters show Replies >= 1 and
  Reactions >= 1
2026-09-18 10:46:27 -04:00
..
cors.test.sh fix: scope CORS to browser routes only, require CORS_ORIGIN (fail closed) 2026-09-10 11:29:18 -04:00
digest-reply-stats.test.ts fix: load reply/reaction events from repository into digest context 2026-09-18 10:46:27 -04:00
digest-template.test.ts Standardize tests on vitest 2026-09-14 13:32:19 -04:00
event-arrival-race.test.ts Standardize tests on vitest 2026-09-14 13:32:19 -04:00
integration.sh Fix integration test: add missing CORS_ORIGIN env var 2026-09-14 13:07:16 -04:00
normalize-relay-url.test.ts Standardize tests on vitest 2026-09-14 13:32:19 -04:00
notify-response-shape.test.ts POST /notify/🆔 standardize response shape — always include stored field 2026-09-14 13:42:11 -04:00
reschedule-on-frequency-change.test.ts Standardize tests on vitest 2026-09-14 13:32:19 -04:00
setup.ts Standardize tests on vitest 2026-09-14 13:32:19 -04:00