Skip to content

Add tests for commandOutputParsing, wranglerAction, and github service#420

Open
vliggio wants to merge 2 commits intocloudflare:mainfrom
vliggio:add-tests
Open

Add tests for commandOutputParsing, wranglerAction, and github service#420
vliggio wants to merge 2 commits intocloudflare:mainfrom
vliggio:add-tests

Conversation

@vliggio
Copy link
Copy Markdown

@vliggio vliggio commented Apr 2, 2026

Summary

  • Add 12 tests for commandOutputParsing.ts (previously 0% coverage): artifact-based output parsing for pages deploy, worker deploy, and version upload; deprecated stdout fallback paths; edge cases like empty targets and unrecognized commands
  • Add 16 tests for wranglerAction.ts: authenticationSetup, execCommands (empty/wrangler-prefixed/plain/sequential), wranglerCommands (default deploy/publish, --env flag injection/dedup, --var flags, stdout/stderr capture, output dir env var), uploadSecrets edge cases (empty secrets, missing env var)
  • Add 4 tests for service/github.ts: createGitHubDeploymentAndJobSummary skip conditions when token, production_branch, pages_project, or deployment_trigger are missing

No changeset needed — test-only changes with no behavior modifications.

Test plan

  • All 70 tests pass (npx vitest run)

Covers the three biggest test gaps: commandOutputParsing (12 new tests,
previously 0% coverage), wranglerAction (16 new tests for authenticationSetup,
execCommands, wranglerCommands, and uploadSecrets edge cases), and github
service (4 new tests for createGitHubDeploymentAndJobSummary skip conditions).

Authored along with the magical Claude.ai
@vliggio vliggio requested review from a team as code owners April 2, 2026 04:15
@vliggio vliggio requested a review from jamesopstad April 2, 2026 04:15
The authenticationSetup, execCommands, wranglerCommands, and extra
uploadSecrets tests were moved to PR cloudflare#415 where they are more relevant.

Authored along with the magical Claude.ai
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