Files
bitvid/tests
google-labs-jules[bot]andPR0M3TH3AN 75fe39c862 fix(test): mock nostrClient.readRelays in profile batch fetcher test
This fixes a CI failure where `batchFetchProfilesFromRelays` made duplicate relay calls because `nostrClient.readRelays` was not mocked, causing it to fall back to default values or overlap with the mocked `nostrClient.relays`.

The test `tests/app-batch-fetch-profiles.test.mjs` now explicitly saves, mocks, and restores `nostrClient.readRelays` to ensure test isolation and accurate call counts.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 01:31:17 +00:00
..