docs(ci): finalize global install runtime docs and smoke coverage

This commit is contained in:
ZenchantLive 2026-03-02 20:46:18 -08:00
parent 8df567c327
commit 6fbd6329b4
6 changed files with 157 additions and 1 deletions

View file

@ -0,0 +1,21 @@
import test from 'node:test';
import assert from 'node:assert/strict';
import fs from 'node:fs/promises';
import path from 'node:path';
const readmePath = path.resolve('README.md');
test('README documents installer one-liners for windows and posix', async () => {
const raw = await fs.readFile(readmePath, 'utf8');
assert.match(raw, /npm i -g beadboard/i);
assert.match(raw, /install\/install\.sh/i);
assert.match(raw, /install[\\/]+install\.ps1/i);
assert.match(raw, /~\/\.beadboard\/runtime/i);
});
test('README documents beadboard launcher commands', async () => {
const raw = await fs.readFile(readmePath, 'utf8');
assert.match(raw, /\bbeadboard start\b/i);
assert.match(raw, /\bbeadboard open\b/i);
assert.match(raw, /\bbeadboard status\b/i);
});