diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-09-25 10:23:05 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-09-25 10:23:05 +0200 |
| commit | f1ed3e6be452f6211cee8db1afef8b56473a04db (patch) | |
| tree | 27a3f0060e968784f13be54ba074835dcc516eb7 /packages/meshbay-hub/tests/harness/search_connect_harness.mjs | |
| parent | 762233772162a05be67432aa551a430b939250de (diff) | |
| download | meshbay-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_connect_harness.mjs')
| -rw-r--r-- | packages/meshbay-hub/tests/harness/search_connect_harness.mjs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/meshbay-hub/tests/harness/search_connect_harness.mjs b/packages/meshbay-hub/tests/harness/search_connect_harness.mjs index 2479d46..60cea2b 100644 --- a/packages/meshbay-hub/tests/harness/search_connect_harness.mjs +++ b/packages/meshbay-hub/tests/harness/search_connect_harness.mjs @@ -12,8 +12,11 @@ // // Usage: node search_connect_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 { |