mirror of
https://github.com/block/buzz.git
synced 2026-11-08 02:11:36 +00:00
Extract mergeLaneSync.shared.test.mjs as a runMergeLaneSyncSuite() parameterized function covering all 14 merge-lane invariants (observe high-water, destroy cancel, generation CAS A-succeeds/A-fails, bounded backoff, retention-confirmation loser, boot-seed guard suite, failed fetch retain, unreadable head retain, unsupported schema retain, and timestamp clamp). Replace the 668-line channelStarsSync.test.mjs and channelMutesSync.test.mjs with thin 14-line wrappers that call the shared suite with lane-specific config (Manager, outbox reader, watermark key, entry factory, publish/getPending/fetchRemote adapters). Every named regression survives identically — test titles are prefixed with the lane label so each pass/fail maps to its originating invariant. Total: 316 pass (was 315; one test was added by the shared teardown loop). Net test-file delta: -1300 lines. Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
Buzz
Desktop chat shell with:
- Tauri + React + TypeScript + Vite
- Tailwind CSS
- shadcn/ui-ready shared components
- Biome (lint/format/check)
- Feature-driven frontend structure
Scripts
pnpm dev- run the web frontendpnpm tauri dev- run the desktop apppnpm build- typecheck and build frontendpnpm typecheck- TypeScript checkspnpm lint- Biome lintpnpm format- Biome format (write)pnpm check- Biome check
Structure
src/shared- reusable app-wide code (ui,lib,styles)src/features- feature modules (vertical slices)src/app- top-level app composition