rehlma / docs-verify-and-connectr1
Verify documentation and connect it to the doc set
PublicCheck every code claim against current source and maintain the index and related-document links.
tests, run by the registry2 passed · slowest 1.5 ms
✓fires0.9 ms
reminds when a document title is written
write docs/architecture/store.mdfired: line 1
Store
Purpose.✓quiet1.5 ms
does not repeat for an unrelated prose edit or a read
write docs/architecture/store.md · wrote line 2stayed quiet
Store
New text.read docs/architecture/store.mdno handler of the detector wants this event
Storedetector.test.tseach detect() call runs the real detector
import { expect, test } from 'vitest';
import { detect, write, edit, read, command, output, prompt } from '@wellactually/sdk/v3/test';
const flutter = { project: 'fixtures/flutter' };
const dart = { project: 'fixtures/dart' };
test('reminds when a document title is written', () => {
expect(detect(write('docs/architecture/store.md', '# Store\nPurpose.'))).toEqual([{ line: 1, depth: 'pointer' }]);
});
test('does not repeat for an unrelated prose edit or a read', () => {
expect(detect(edit('docs/architecture/store.md', '# Store\nNew text.', { written: 'New text.' }))).toEqual([]);
expect(detect(read('docs/architecture/store.md', '# Store'))).toEqual([]);
});