From b07d3f630ac3462485c27312deca85ca027dee36 Mon Sep 17 00:00:00 2001 From: Matt Toohey Date: Mon, 23 Nov 2026 11:58:51 +1100 Subject: [PATCH] test(notices): give the ShellNotices plugin fake the snapshot's hostOwned `pnpm typecheck` fails on main, which fails the "JavaScript checks" job there and on every pull request based on it: src/features/notices/ShellNotices.test.tsx(25,7): error TS2322 The types returned by 'snapshot()' are incompatible between these types. Property 'hostOwned' is missing in type '{ configuration: ... Two changes that landed about eleven hours apart crossed: - 1044a41b72 (PR 2953) added ShellNotices.test.tsx, whose plugin manager fake builds a snapshot by hand. - c8e7b73877 (PR 3701) added a required `hostOwned` to the plugin manager's snapshot and updated the other test fakes, but not this one. Since c8e7b73877 the fake no longer matches `Pick`. "JavaScript checks" last passed on main at 4eff0ceeed, three commits before c8e7b73877, and has failed on each main commit it has run on since (e9c7586b77, 38fe301b47). Add `hostOwned: []` to the fake, as c8e7b73877 did for the fake in src/app/PluginUpdates.test.tsx. The notice under test comes from an external plugin, so no host-owned feature is involved. It was the only type error; no production code changes. 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,