Weekly Planner
Codebase

Testing

Vitest suites and the invariants they lock in.

Testing

Config: vitest.config.js — Node environment, test/**/*.test.js.

Run: npm test (or npm run check).

FileFocus
models.test.jsEvent/board normalization, coverage, packing, todos derivation
policies.test.jsBootstrap policy, role normalization, commitTransaction
shared-board.test.jsShare access state machine
drag.test.jsLong-press, scroll cancel, rAF coalescing, edge scroll
grid-layout.test.jsGeometry, header sync, pack/merge drag view
grid-cursors.test.jsCoordinate conversion + cursor keys
time.test.jsGrid time, planner day, snapping
print-prefs.test.jsDefaults, normalization, storage failures
og-meta.test.jsCrawlers, sanitization, privacy, HTML tags
og-handler.test.js/api/og writes PNG; rejects non-GET
vercel-spa.test.jsNo cleanUrls; SPA + API rewrites

Prefer pure modules so tests do not need Instant or a browser.

On this page