From 53ed68a1137b4e7209c7f8c9f5deb63315a70505 Mon Sep 17 00:00:00 2001 From: Matt Toohey Date: Mon, 23 Nov 2026 11:58:56 +1100 Subject: [PATCH] test(notices): give the fake plugin snapshot its hostOwned list The JavaScript checks job fails on main at its type check: src/features/notices/ShellNotices.test.tsx(25,7): error TS2322 Property 'hostOwned' is missing in type ... but required in type 'Pick' (the snapshot). Two changes crossed. PR 2953 (1044a41b72) added this test, which builds a fake plugin manager snapshot. PR 3701 (c8e7b73877) then made `hostOwned`, the manifests of the host-owned features, a required part of the snapshot. Neither saw the other, so each passed alone. The fake now carries `hostOwned: []`, where the manager puts it. The test models one external plugin and no host-owned feature, so the empty list is what a real manager without built-ins reports. This is the only type error on main; no other fake lacks the field. Draft PR 4232 carries the same line in the same place, so the two merge cleanly. Ran, on this tree: - pnpm exec tsc --noEmit before the change: the one error above. - pnpm check (Biome, tsc, design typecheck, design checks): passed. - vitest run src/features/notices/ShellNotices.test.tsx: 1 file, 1 test, passed. Signed-off-by: Matt Toohey Co-Authored-By: Claude Fable 5.2 --- src/features/notices/ShellNotices.test.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/features/notices/ShellNotices.test.tsx b/src/features/notices/ShellNotices.test.tsx index a4c0b43fa4..c6ab77ee48 100644 --- a/src/features/notices/ShellNotices.test.tsx +++ b/src/features/notices/ShellNotices.test.tsx @@ -43,6 +43,7 @@ const plugins: Pick = (() => { }, externalPluginsPaused: false, }, + hostOwned: [], activation: {}, busy: false, error: null,