mirror of
https://github.com/block/buzz.git
synced 2026-11-06 17:31:19 +00:00
makeFakeTimers() was calling the native scheduler for all delays, leaking
live callbacks past test teardown and making scheduled.delete() bookkeeping-
only. Fix: positive-delay timers are now purely synthetic — allocate a local
ID, store {fn, ms} in the map, never touch origSetTimeout. Zero-delay work
still delegates to the native scheduler so async continuations flush. restore()
simply swaps the functions back; no native timers exist to cancel.
incompleteVerdictCases table was asserting retryAttempt > 0, which let a
+= 2 mutation survive the retryLoad row and an = 2 mutation survive the
initialize row. Both rows now carry expectedAttempt: 1 and assert the exact
value. The initialize path sets retryAttempt = 1 directly; the retryLoad path
increments via retryAttempt++. Each row's exact assertion independently bites
its own guarded production path.
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