Skip to content

test(services): add coverage for Puppeteer executablePath resolution - #169

Merged
datvt243 merged 1 commit into
stagingfrom
154-puppeteer-chrome-executable
Sep 27, 2026
Merged

datvt243 merged 1 commit into
stagingfrom
154-puppeteer-chrome-executable

Conversation

@datvt243

Copy link
Copy Markdown
Owner

Summary

Closes #154. The production fix was already live on staging since add-docker-support (issue #24, SEALED 2026-09-06) — createCV already uses PUPPETEER_EXECUTABLE_PATH as an optional override, falling back to Puppeteer's own bundled Chromium resolution when unset, with no hardcoded path anywhere. Live-Docker-verified previously, but never unit-tested, and the diagram node was never backfilled.

  • src/__tests__/services/createPDF.test.ts — mocks puppeteer.launch entirely (no real browser spawned) and asserts createCV calls it with no executablePath key when PUPPETEER_EXECUTABLE_PATH is unset, and with that exact value when set.
  • agent-hub/: backfilled evidence (implementer + verifier) and sealed node fix-chrome-executable-path.

Commits

  • 247983c test(services): add coverage for Puppeteer executablePath resolution

Test plan

  • npm test — 142 passed, 142 total
  • npm run build — clean

🤖 Generated with Claude Code

Closes #154. The production fix was already live on staging since
add-docker-support (issue #24, SEALED 2026-09-06) — createCV already
uses PUPPETEER_EXECUTABLE_PATH as an optional override, falling back
to Puppeteer's own bundled Chromium resolution when unset, with no
hardcoded path anywhere. Live-Docker-verified previously, but never
unit-tested, and the diagram node was never backfilled.

- src/__tests__/services/createPDF.test.ts: mocks puppeteer.launch
  entirely (no real browser spawned) and asserts createCV calls it
  with no executablePath key when PUPPETEER_EXECUTABLE_PATH is unset,
  and with that exact value when set.
- agent-hub: backfill evidence (implementer + verifier) and seal node
  fix-chrome-executable-path.

npm test: 142 passed, 142 total. npm run build: clean.

Node: fix-chrome-executable-path (SEALED)
Evidence: agent-hub/evidence/implementer/2026-09-28/fix-chrome-executable-path-plan.md,
agent-hub/evidence/verifier/2026-09-28/fix-chrome-executable-path-seal.md

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@datvt243
datvt243 merged commit 2faa537 into staging Sep 27, 2026
3 checks passed
@datvt243
datvt243 deleted the 154-puppeteer-chrome-executable branch September 27, 2026 18:26
@datvt243 datvt243 mentioned this pull request Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant