aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/tests/harness/search_fanout_harness.mjs
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-09-25 10:23:05 +0200
committerChristophe Besson <cbesson@gmail.com>2026-09-25 10:23:05 +0200
commitf1ed3e6be452f6211cee8db1afef8b56473a04db (patch)
tree27a3f0060e968784f13be54ba074835dcc516eb7 /packages/meshbay-hub/tests/harness/search_fanout_harness.mjs
parent762233772162a05be67432aa551a430b939250de (diff)
downloadmeshbay-f1ed3e6be452f6211cee8db1afef8b56473a04db.tar.gz
test(hub): read the search code wherever it is split
The Node harnesses take one file or several, and the tests that lift connectToGroup and the pool out of search-page.js as text take them from spa_source, which also reads connection-pool.js once it exists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/tests/harness/search_fanout_harness.mjs')
-rw-r--r--packages/meshbay-hub/tests/harness/search_fanout_harness.mjs5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/meshbay-hub/tests/harness/search_fanout_harness.mjs b/packages/meshbay-hub/tests/harness/search_fanout_harness.mjs
index 5f95ede..f84d90b 100644
--- a/packages/meshbay-hub/tests/harness/search_fanout_harness.mjs
+++ b/packages/meshbay-hub/tests/harness/search_fanout_harness.mjs
@@ -11,8 +11,11 @@
//
// Usage: node search_fanout_harness.mjs <path to search-page.js> <json config>
import { readFileSync } from 'fs';
+import { delimiter } from 'path';
-const src = readFileSync(process.argv[2], 'utf8');
+// One file or several (search-page.js and what it was split into), joined
+// with the platform's path delimiter.
+const src = process.argv[2].split(delimiter).map((p) => readFileSync(p, 'utf8')).join('\n');
const cfg = JSON.parse(process.argv[3] || '{}');
const {