mirror of
https://github.com/block/buzz.git
synced 2026-12-01 13:42:45 +00:00
clock.install({ time }) only sets the fake clock's epoch: fake time keeps
flowing with real time, so the seeded two-second status could still
expire during popover/editor setup on a slow machine — a 3s real delay
before opening the editor reproduces the original fresh-editor failure.
clock.setFixedTime pins Date.now() while timers, network, and rendering
keep running (the same idiom as the channels.spec.ts ephemeral-countdown
test), so the saved editor preconditions hold regardless of setup
duration. Expiry is crossed deliberately by advancing the pinned date
past the deadline and firing the pending timer with fastForward; the
expired-before-opening control test crosses the same deadline before
opening.
Signed-off-by: Logan Johnson <loganj@squareup.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