Skip to content

test: cli.test.ts is mislabeled and doesn't test the actual command #5

@satoshai-dev

Description

@satoshai-dev

Description

cli.test.ts is described as "CLI integration" but it manually calls parseContractId and generateTypescript — the same units already covered by fetcher.test.ts and codegen.test.ts. It does not test fetchCommand or the CLI entry point at all.

Location

tests/unit/cli.test.ts

Expected

Either rewrite to actually exercise fetchCommand (import and call its run with mock args), or delete and replace with proper command-level tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    testingTest coverage and quality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions