deckhearth/test
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
..
api fix(tests): wire DEFAULT_LAYOUT export, fix custom-frames mocks, and add validateLayout tests 2026-09-01 09:40:04 -05:00
components feat(scanner): add desktop workstation layout (#165) 2026-08-15 17:21:23 -05:00
lib Add manual tap-to-scan with shutter button on mobile. (#167) 2026-08-15 20:11:54 -05:00
pages feat(scanner): add desktop workstation layout (#165) 2026-08-15 17:21:23 -05:00
setup.js fix(scanner): satisfy react-hooks/immutability and jsdom ResizeObserver in tests 2026-08-23 22:27:49 -05:00