singularity-forge/src/resources/extensions/browser-tools/tests
Nils Reeh 3cf0094559 test(browser-tools): add regression tests for optional sharp lazy-load
Satisfies the CI test requirement for the capture.ts source change.

Two describe blocks:
- Static: verifies the lazy-load pattern is structurally correct in
  source (no top-level import, getSharp helper present, null guard present)
- Behavioral: verifies constrainScreenshot returns the raw buffer
  unchanged when sharp is null (unavailable platform / bunx)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 23:45:01 +02:00
..
browser-tools-integration.test.mjs feat(browser-tools): configurable screenshot resolution, format, and quality (#1152) 2026-03-18 08:33:40 -06:00
browser-tools-unit.test.cjs feat(browser-tools): configurable screenshot resolution, format, and quality (#1152) 2026-03-18 08:33:40 -06:00
capture-sharp-optional.test.cjs test(browser-tools): add regression tests for optional sharp lazy-load 2026-04-05 23:45:01 +02:00