Cover all important aspects of nostr-data service with tests #88

Merged
raucao merged 3 commits from dev/nostr-data-tests into master 2026-08-27 17:15:53 +00:00
Owner

This uncovered a little bug for the provenance cleanup for deleted photo events, which has also been fixed.

This uncovered a little bug for the provenance cleanup for deleted photo events, which has also been fixed.
raucao added the dev environment label 2026-08-27 17:13:38 +00:00
raucao added 3 commits 2026-08-27 17:13:38 +00:00
Listen to the store's deletes stream instead of a timeline (kind 5
events never enter the event database), and unsubscribe the
subscription on destroy. Add unit tests for relay getters,
provenance handling, and trust partitioning.
Cover loadPlacesInBounds (geohash prefix dedup, cache hydration,
network filters), loadPhotosForPlace (entity switching, subscription
teardown, reset semantics), and trust presentation (default hiding of
untrusted photos, reveal toggle, own-content bypass).
Reorganize nostr-data tests into focused modules
CI / Lint (pull_request) Successful in 1m17s
CI / Test (pull_request) Successful in 1m35s
Release Drafter / Update release notes draft (pull_request) Successful in 5s
bf3011115b
Split the monolithic test file into 8 single-responsibility modules:
contacts, relay configuration, provenance, trust evaluation, geohash
loading, place photos, my contributions, and zap receipts. Extract
shared setup helper to eliminate duplication.
raucao merged commit e7020469c3 into master 2026-08-27 17:15:53 +00:00
raucao deleted branch dev/nostr-data-tests 2026-08-27 17:15:54 +00:00
Sign in to join this conversation.