Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
test: compare dependency key lists so a dotted package name can't slip past the root-deps guard (#3454)
[._.]/ Adam Eivy9bb1ac4ce46b
diff --git a/scripts/root-runtime-deps.test.js b/scripts/root-runtime-deps.test.jsindex 05e2025e15..209905eea2 100644--- a/scripts/root-runtime-deps.test.js+++ b/scripts/root-runtime-deps.test.js@@ -43,11 +43,17 @@ describe('root scripts run binaries from `dependencies`, not `devDependencies` (expect(packages.length).toBeGreaterThan(0);});+ // Compared as key lists rather than via `toHaveProperty`, which reads a dot+ // in the name as a path separator — `socket.io` would be checked as+ // `dependencies.socket.io` and silently never match.+ const dependencies = Object.keys(rootManifest.dependencies ?? {});+ const devDependencies = Object.keys(rootManifest.devDependencies ?? {});+it.each(packages)('%s is a root `dependency` so it survives a production install',(pkg) => {- expect(rootManifest.dependencies ?? {}).toHaveProperty(pkg);- expect(rootManifest.devDependencies ?? {}).not.toHaveProperty(pkg);+ expect(dependencies).toContain(pkg);+ expect(devDependencies).not.toContain(pkg);});});