docs(ci): finalize global install runtime docs and smoke coverage
This commit is contained in:
parent
8df567c327
commit
6fbd6329b4
6 changed files with 157 additions and 1 deletions
21
tests/docs/installer-quickstart-contract.test.ts
Normal file
21
tests/docs/installer-quickstart-contract.test.ts
Normal 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);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue