Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

test(plugins): count modal portal call sites

vastsa0360c3c6251d
diff --git a/apps/desktop/test/settings-dialog-overlay.test.mjs b/apps/desktop/test/settings-dialog-overlay.test.mjs
index ad876e8b6..a82825d8c 100644
--- a/apps/desktop/test/settings-dialog-overlay.test.mjs
+++ b/apps/desktop/test/settings-dialog-overlay.test.mjs
@@ -76,7 +76,7 @@ test("settings overlays mount on a viewport-fixed host outside the app shell", a
const pluginDialogs = await read("../src/features/plugins/PluginDialogs.tsx");
assert.equal(
- pluginDialogs.match(/pluginModalPortal\(/g)?.length,
+ pluginDialogs.match(/(?<!function )pluginModalPortal\(/g)?.length,
3,
"each route-owned plugin modal must mount through pluginModalPortal",
);