From 70e596b31408bc88d227d8cbd714532b982d9713 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 30 Jan 2026 14:35:24 +0000 Subject: [PATCH] fix(test): mock hashtagPreferencesService.load in profile modal tests - Added missing `load` method to `baseHashtagPreferences` mock in `tests/profile-modal-controller.test.mjs` to fix `TypeError: this.hashtagPreferencesService.load is not a function`. - Updated `package.json` to run `tailwindcss` directly instead of via `npx` to resolve CI build errors ("could not determine executable to run"). Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- package.json | 2 +- tests/profile-modal-controller.test.mjs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 21a8b961..4df9e94a 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "start": "npm run build && npx serve", "serve": "npx serve", "build": "node scripts/build-dist.mjs", - "build:css": "npx tailwindcss -c tailwind.config.cjs -i css/tailwind.source.css -o css/tailwind.generated.css --minify", + "build:css": "tailwindcss -c tailwind.config.cjs -i css/tailwind.source.css -o css/tailwind.generated.css --minify", "build:beacon:bundle": "node scripts/build-beacon.mjs", "build:beacon": "npm run build:beacon:bundle && npm run lint:inline-styles", "ci:beacon": "npm run build:beacon", diff --git a/tests/profile-modal-controller.test.mjs b/tests/profile-modal-controller.test.mjs index f14c3730..6259ff69 100644 --- a/tests/profile-modal-controller.test.mjs +++ b/tests/profile-modal-controller.test.mjs @@ -273,6 +273,7 @@ function createController(options = {}) { } return hashtagStore.disinterests.delete(normalized); }, + load: async () => {}, publish: async () => ({ ok: true }), on: () => () => {}, };