From d6d3e6985b1a4359a2725ed587fd62cd9e1c5bcc Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 15:00:12 +0000 Subject: [PATCH] Add desktop compatibility-surface guard tests Co-authored-by: Theo Browne --- .../src/runtimeCompatibilitySurface.test.ts | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 apps/desktop/src/runtimeCompatibilitySurface.test.ts diff --git a/apps/desktop/src/runtimeCompatibilitySurface.test.ts b/apps/desktop/src/runtimeCompatibilitySurface.test.ts new file mode 100644 index 0000000000..fd9aa9553e --- /dev/null +++ b/apps/desktop/src/runtimeCompatibilitySurface.test.ts @@ -0,0 +1,23 @@ +import fs from "node:fs"; +import path from "node:path"; +import { describe, expect, it } from "vitest"; + +const WRAPPER_FILES = [ + "processManager.ts", + "todoStore.ts", + "providerManager.ts", + "codexAppServerManager.ts", +] as const; + +describe("desktop runtime compatibility surface", () => { + for (const fileName of WRAPPER_FILES) { + it(`${fileName} re-exports from runtime-core`, () => { + const filePath = path.resolve(import.meta.dirname, fileName); + const source = fs.readFileSync(filePath, "utf8"); + + expect(source).toContain("@acme/runtime-core"); + expect(source).toContain("export {"); + expect(source).not.toContain("class "); + }); + } +});