Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test: make module boundary and mock api tests more robust

Steven Enamakel5cff954d55a1
diff --git a/scripts/__tests__/check-module-boundaries.test.mjs b/scripts/__tests__/check-module-boundaries.test.mjs
index 7e9f537a47..8b6072fa93 100644
--- a/scripts/__tests__/check-module-boundaries.test.mjs
+++ b/scripts/__tests__/check-module-boundaries.test.mjs
@@ -288,6 +288,7 @@ test('a package-scoped normal tree still rejects an activated implementation wri
test('host boundary audit ignores writer features unified only by unrelated workspace dev fixtures', () => {
const root = resolve(new URL('../..', import.meta.url).pathname);
+ mkdirSync(join(root, 'target'), { recursive: true });
const harnessRoot = mkdtempSync(join(root, 'target', 'module-boundaries-host-isolation-'));
try {
mkdirSync(join(harnessRoot, 'scripts', 'ci'), { recursive: true });
diff --git a/scripts/mock-api/routes/__tests__/stateful.test.mjs b/scripts/mock-api/routes/__tests__/stateful.test.mjs
index 40a23ca2b5..dfcf60e95f 100644
--- a/scripts/mock-api/routes/__tests__/stateful.test.mjs
+++ b/scripts/mock-api/routes/__tests__/stateful.test.mjs
@@ -68,7 +68,7 @@ test("does not reseed conversations after deleting everything until reset", asyn
});
test("keeps server-controlled ids on create and patch routes", async () => {
- const started = await startMockServer(18578, { retryIfInUse: true });
+ const started = await startMockServer(0);
const baseUrl = `http://127.0.0.1:${started.port}`;
const createdConversation = await fetch(`${baseUrl}/conversations`, {