Skip to content

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

test(e2e): update web bundle guard assertion for target directory

Steven Enamakel8d66f691f543
diff --git a/scripts/__tests__/e2e-web-bundle-guard.test.mjs b/scripts/__tests__/e2e-web-bundle-guard.test.mjs
index aca597a2cc..c7cc87cce1 100644
--- a/scripts/__tests__/e2e-web-bundle-guard.test.mjs
+++ b/scripts/__tests__/e2e-web-bundle-guard.test.mjs
@@ -343,7 +343,10 @@ test("e2e-web-build.sh marks the bundle it builds, recording the E2E settings",
assert.match(recorded, /^VITE_OPENHUMAN_CORE_RPC_URL=http:\/\/127\.0\.0\.1:17788\/rpc$/m);
const cargoBuild = tree.calls().find((call) => call.startsWith("cargo "));
assert.ok(cargoBuild, "web E2E build invokes Cargo for the standalone core");
- assert.match(cargoBuild, /--target-dir [^ ]*target\/e2e-web-test-triple/);
+ assert.ok(
+ cargoBuild.includes(`--target-dir ${path.join(tree.root, "target")}`),
+ `web E2E build should honor E2E_WEB_CORE_TARGET_DIR: ${cargoBuild}`,
+ );
assert.match(cargoBuild, /--features voice,e2e-test-support/);
assert.doesNotMatch(cargoBuild, /CARGO_TARGET_DIR=/);
} finally {