From dd947023a54416ee5c2ba5c8efa1432fdae162da Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 15:58:28 +0000 Subject: [PATCH] Guard smoke script fake-codex independence in architecture tests Co-authored-by: Theo Browne --- apps/t3/src/runtimeArchitecture.test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/t3/src/runtimeArchitecture.test.ts b/apps/t3/src/runtimeArchitecture.test.ts index 5d99709ebc..51f45cfa1e 100644 --- a/apps/t3/src/runtimeArchitecture.test.ts +++ b/apps/t3/src/runtimeArchitecture.test.ts @@ -43,4 +43,13 @@ describe("runtime architecture boundaries", () => { expect(tsupConfigSource).toContain("\"@acme/runtime-core\""); expect(tsupConfigSource).toContain("noExternal"); }); + + it("keeps smoke tests independent from real codex installation", () => { + const smokeScriptPath = path.resolve(import.meta.dirname, "..", "scripts", "smoke-test.mjs"); + const smokeScriptSource = fs.readFileSync(smokeScriptPath, "utf8"); + + expect(smokeScriptSource).toContain("createFakeCodexAppServerBinary"); + expect(smokeScriptSource).toContain("PATH: `${fakeCodex.tempDir}${path.delimiter}"); + expect(smokeScriptSource).toContain("fs.rmSync(fakeCodex.tempDir"); + }); });