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"); + }); });