Skip to content

[create] Round out Seam C --help smoke coverage (#2959) - #30

Merged
btopro merged 1 commit into
mainfrom
issue-2959-tier3-smoke-tests
Sep 2, 2026
Merged

[create] Round out Seam C --help smoke coverage (#2959)#30
btopro merged 1 commit into
mainfrom
issue-2959-tier3-smoke-tests

Conversation

@btopro

@btopro btopro commented Sep 2, 2026

Copy link
Copy Markdown
Member

Summary

Closes both work items from haxtheweb/issues#2959.

1. Verify the 46 CI skips auto-activate to passes

@haxtheweb/haxcms-nodejs@26.8.1 is now published and satisfies the existing ^26.8.0 dependency range, shipping the previously-missing dist/lib/{HAXCMS,allRoutes,safeFetch,sanitizeContent}.js files.

Ran npm test against the registry-resolved package (no npm link):

  • Before this dep was aligned: 137 pass, tests gated by module-canary would skip.
  • Now: 143 pass / 0 skip / 0 fail.

No test-code changes were needed — the canary gating in test/_helpers/module-canary.cjs auto-activated as designed.

2. Wire in Tier 3 subprocess coverage (Seam C expansion)

The two specific suggested additions (hax site create --y ... and hax webcomponent ... --y) already existed in test/smoke/cli.smoke.test.cjs. This PR rounds out the remaining subcommand help set mentioned in the issue by adding --help smoke tests for: party, audit, skills, update, serve, start.

Test plan

  • npm run build && npm test → 143 tests, 0 fail, 0 skip.

Co-Authored-By: Warp agent@warp.dev

Verified item 1: running `npm test` against the registry-resolved
@haxtheweb/haxcms-nodejs@26.8.1 (satisfies ^26.8.0) now passes
143/0/0 (pass/skip/fail), up from 137 pass with the previously
gated tests skipped. No test-code changes were needed for this
part — canary gating auto-activated as expected.

Item 2: added --help smoke tests for the remaining subcommands
(party, audit, skills, update, serve, start) to round out the
subcommand help set, per the issue's suggested additions. The
`hax site create` and `hax webcomponent` non-interactive smoke
tests already existed in this file.

Co-Authored-By: Warp <agent@warp.dev>
Copilot AI lite review requested due to automatic review settings September 2, 2026 13:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Changes are limited to additional smoke tests and do not alter runtime CLI behavior, with only minor maintainability feedback noted.

Pull request overview

This PR expands the CLI “Seam C” subprocess smoke test coverage by adding --help smoke checks for additional Tier 3 subcommands, supporting the goal of ensuring the public CLI surface is exercised in CI (as described in #2959).

Changes:

  • Add smoke tests asserting create <subcommand> --help exits 0 for: party, audit, skills, update, serve, start.
  • Keep the existing subprocess-based approach (spawn the built dist/create.js in an isolated HOME) consistent with the rest of the smoke suite.
File summaries
File Description
test/smoke/cli.smoke.test.cjs Adds --help subprocess smoke tests for more CLI subcommands to round out Seam C coverage.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread test/smoke/cli.smoke.test.cjs
@btopro
btopro merged commit 976f8a9 into main Sep 2, 2026
3 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants