Skip to content

test(cli): cover zk build --network target resolution - #310

Merged
Dione-b merged 1 commit into
mainfrom
test/zk-build-network-tests
Oct 20, 2026
Merged

Dione-b merged 1 commit into
mainfrom
test/zk-build-network-tests

Conversation

@Dione-b

@Dione-b Dione-b commented Oct 20, 2026

Copy link
Copy Markdown
Owner

Motivation

#252 (by @AugistineCreates) added --network to ctg zk build; main shipped the same fix in #304/#305, so #252 was closed as superseded. This ports the tests from it that main didn't already have, with credit.

Behavior

Tests only, no production changes. Two new cases in packages/cli/src/commands/zk-build.command.test.ts:

  • --network mainnet --allow-dev-ceremony is allowed (buildCircuit runs).
  • Omitting --network falls back to defaultNetwork (logs Network: testnet (config)).

#252's blocked-on-mainnet and unknown-network (CAATINGA_NETWORK_NOT_FOUND) cases were already covered on main, so I didn't duplicate them.

Tests

  • pnpm --filter @caatinga/cli test: 41 files / 301 tests pass
  • pnpm typecheck, pnpm format: clean

Release impact

None (tests only, no changeset).

Co-authored-by: AugistineCreates project.kosiso@gmail.com

🤖 Generated with Claude Code

Port the remaining useful cases from #252: an explicit `--network mainnet`
is allowed with `--allow-dev-ceremony`, and omitting `--network` resolves
to defaultNetwork. The blocked-mainnet and unknown-network cases from #252
were already covered on main.

Co-authored-by: AugistineCreates <project.kosiso@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Dione-b
Dione-b merged commit c2fa0a6 into main Oct 20, 2026
3 checks passed
@Dione-b
Dione-b deleted the test/zk-build-network-tests branch October 20, 2026 17:29
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