Skip to content

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

fix(scripts): skip docs directory when externalizing inline tests

Steven Enamakel9b348176ab78
diff --git a/scripts/externalize-inline-tests.mjs b/scripts/externalize-inline-tests.mjs
index 4db45791fc..2529e749e6 100644
--- a/scripts/externalize-inline-tests.mjs
+++ b/scripts/externalize-inline-tests.mjs
@@ -21,7 +21,7 @@ import fs from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";
-const SKIPPED_DIRS = new Set(["tests", "benches", "examples", "target"]);
+const SKIPPED_DIRS = new Set(["tests", "benches", "examples", "target", "docs"]);
const TEST_FILE_NAMES = new Set(["tests.rs", "test.rs"]);
const CFG_TEST_ATTR = /^#\[cfg\(.*\btest\b.*\)\]$/;
const CFG_NOT_TEST = /\bnot\(\s*test\s*\)/;