feat(cli): expand non-json status diagnostics output
This commit is contained in:
parent
84e2dff2d1
commit
b61f27aaf3
3 changed files with 46 additions and 6 deletions
30
tests/scripts/beadboard-launcher-status-text.test.ts
Normal file
30
tests/scripts/beadboard-launcher-status-text.test.ts
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import { execFile } from 'node:child_process';
|
||||
import { promisify } from 'node:util';
|
||||
import path from 'node:path';
|
||||
|
||||
const execFileAsync = promisify(execFile);
|
||||
const launcherPath = path.resolve('install/beadboard.mjs');
|
||||
|
||||
test('status text output includes runtime and bd diagnostics', async () => {
|
||||
let stdout = '';
|
||||
try {
|
||||
({ stdout } = await execFileAsync(process.execPath, [launcherPath, 'status']));
|
||||
} catch (error) {
|
||||
stdout = (error as { stdout?: string }).stdout || '';
|
||||
}
|
||||
|
||||
assert.match(stdout, /BeadBoard status/i);
|
||||
assert.match(stdout, /Running:/i);
|
||||
assert.match(stdout, /URL:/i);
|
||||
assert.match(stdout, /Port:/i);
|
||||
assert.match(stdout, /Install Mode:/i);
|
||||
assert.match(stdout, /Runtime Root:/i);
|
||||
assert.match(stdout, /Shim Target:/i);
|
||||
assert.match(stdout, /bd Available:/i);
|
||||
assert.match(stdout, /bd Path:/i);
|
||||
assert.match(stdout, /Project CWD:/i);
|
||||
assert.match(stdout, /\.beads Dir:/i);
|
||||
assert.match(stdout, /\.beads DB:/i);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue