Instruction file imported from Vininic/chronos (
.github/instructions/testing-fast-path.instructions.md). Copyright stays with the author.
Chronos Testing Fast Path
Run the smallest reliable check first, then expand only if needed.
Quick Command Matrix
- Install deps (if needed):
corepack pnpm install - Lint only:
corepack pnpm lint - Full tests:
corepack pnpm test - Watch tests:
corepack pnpm test:watch - Production build:
corepack pnpm build
Fast Validation Flow
- If you changed only styles/markup in one component:
- Run
corepack pnpm lint
- Run
- If you changed schedule logic, date math, drag behavior, or sleep boundary logic:
- Run
corepack pnpm test -- src/test/schedule-crossday.test.ts - Then run
corepack pnpm test
- Run
- If you changed routing, providers, or shared state behavior:
- Run
corepack pnpm lint - Run
corepack pnpm test
- Run
- Before handing off major edits:
- Run
corepack pnpm lint - Run
corepack pnpm test - Run
corepack pnpm build
- Run
Areas That Require Targeted Crossday Coverage
src/components/dashboard/DayPlanner.tsxsrc/lib/schedule/store.tsxsrc/lib/schedule/types.ts
When any of these change, include the targeted crossday test command before full-suite execution.