Skip to content

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

test(self-hosted-lanes): assert expected-targets count in coverage test

Steven Enamakelba4aa3bf586d
diff --git a/scripts/__tests__/self-hosted-lanes.test.mjs b/scripts/__tests__/self-hosted-lanes.test.mjs
index b5c494daec..94cf2cb64d 100644
--- a/scripts/__tests__/self-hosted-lanes.test.mjs
+++ b/scripts/__tests__/self-hosted-lanes.test.mjs
@@ -452,6 +452,7 @@ test("private auxiliary coverage reports after failed tests and preserves the fa
},
});
assert.equal(result.status, 17);
+ assert.equal(fs.readFileSync(path.join(dir, "expected-targets"), "utf8").trim().split("\n").length, 10);
const commands = fs.readFileSync(calls, "utf8").trim().split("\n");
assert.equal(commands.length, 3);
assert.match(commands[0], /^metadata /);