// README contracts a consumer codes against (#301 items 2 and 6): // - the scanPack loop in the README, run as written: it sees every object of a pack git made, with git's sizes; // - the wire-span attribute sentence of the telemetry contract, checked on a GET, a POST and a failed exchange. import { test } from 'vitest'; import assert from 'node:assert/strict'; import { readFileSync } from 'node:fs'; import { join } from 'node:path'; import { mkdirSync } from 'node:fs'; import { scanPack, readCommit, Tracer, discover, lsRefs, push, createTransport } from '../src/index.js'; import { arrayExporter, flattenLine } from '../src/otel.js'; import { startGitServer, makeBareRepo, tmpRoot, commitFiles, git, gitBuf } from './server.js'; const README = readFileSync(new URL('../README.md', import.meta.url), 'utf8'); function scanLoop() { const at = README.indexOf('