Fix CI, environment, linting, and unit test issues

- Fix circular dependency in `js/adminListStore.js` by importing from `js/nostrClientRegistry.js`.
- Update `js/services/hashtagPreferencesService.js` to include legacy kind 30005 in filters.
- Fix JSDOM mocking in `tests/modal-accessibility.test.mjs` (navigator getter) and `UploadModal` selectors.
- Add `getRoot()` to `js/ui/components/UploadModal.js` for API consistency.
- Update `tests/magnet-utils.test.mjs` expectations to reflect removed default tracker.
- Mock `ensureActiveSignerForPubkey` in `tests/moderation/submit-report.test.mjs`.
- Fix mock loader path in `tests/moderation/trust-seeds.test.mjs` to target `trustBootstrap.js`.
- Fix duplicate pointer tags in `js/nostrEventSchemas.js`'s `buildCommentEvent`.
- Update `tests/nostr/comment-events.test.mjs` and `tests/comment-event-builder.test.mjs` to match current code behavior (legacy kinds, unique tags).
This commit is contained in:
google-labs-jules[bot] committed 2026-01-13 20:32:06 +00:00
1 parent 778b35874d
commit d6882fb5bb
12 files changed
+331 -235

No files matched your search

+4 -2
View File
@@ -9,8 +9,10 @@ import {
ADMIN_COMMUNITY_BLACKLIST_PREFIX,
isDevMode,
} from "./config.js";
import { getRegisteredNostrClient } from "./nostrClientRegistry.js";
import { requestDefaultExtensionPermissions } from "./nostr/defaultClient.js";
import {
getRegisteredNostrClient,
requestDefaultExtensionPermissions,
} from "./nostrClientRegistry.js";
import { devLogger, userLogger } from "./utils/logger.js";
import {
buildAdminListEvent,