deckhearth/docs
Randall Stillwell a81c6dc21b fix(tests): wire DEFAULT_LAYOUT export, fix custom-frames mocks, and add validateLayout tests
- Export DEFAULT_LAYOUT from lib/frame-palette.js so the custom-frames
  route can import it at runtime (not just the hardcoded copy in tests).
- Fix vitest mock isolation in test/api/custom-frames.test.js: beforeEach now
  uses mockReturnValue instead of mockResolvedValue to avoid resolving the
  default mock in each test; test cases provide specific mock chains with
  mockResolvedValueOnce. Fixes 4 tests that were bleeding state between
  cases due to leftover queued mock values.
- Fix validateLayout test coordinates: art w+h=0.924 and 0.398 are both
  within the 0-1 fraction range so x+w=0.962<1 and y+h=0.982<1 pass.
- Add dedicated validateLayout unit tests (accepts, rejects missing zone,
  rejects out-of-bounds).
- Fix update test mock chain: PUT calls SELECT (found) then SELECT (clash)
  then UPDATE (RETURNING) — provide all three in order.
- Fix DELETE test: owns via SELECT then executes DELETE (2 calls).
2026-09-01 09:40:04 -05:00
..
agent-context chore(agent-pipeline): sync 0.6.0/0.7.0 artifacts (#155) 2026-08-14 18:56:01 -05:00
DESIGN_TOKENS.md feat(design-system): Liquid Glass redesign portfolio — foundation + primitives + Layout (#95) 2026-06-03 20:12:33 -05:00
DOKPLOY_DEPLOY.md fix(tests): wire DEFAULT_LAYOUT export, fix custom-frames mocks, and add validateLayout tests 2026-09-01 09:40:04 -05:00
HOMELAB_DATABASE.md Migrate Deck Hearth off Vercel/Neon to homelab Dokploy stack. 2026-08-15 09:32:13 -05:00
MIGRATION_VERIFICATION_RUNBOOK.md docs: post-hoc B7 closure for reconcile-historical-add-scripts (#163) 2026-08-15 16:31:37 -05:00
MOTION_SYSTEM.md feat(design-system): Liquid Glass redesign portfolio — foundation + primitives + Layout (#95) 2026-06-03 20:12:33 -05:00
SCHEMA_MAP.md docs: post-hoc B7 closure for reconcile-historical-add-scripts (#163) 2026-08-15 16:31:37 -05:00