Skip to content

fix(cli): infer go test or pytest when package.json has no test script - #293

Merged
adityankale190895 merged 1 commit into
DiffCI:mainfrom
FredApps:fix/cli-full-command-tooling-package-json
Nov 18, 2026
Merged

adityankale190895 merged 1 commit into
DiffCI:mainfrom
FredApps:fix/cli-full-command-tooling-package-json

Conversation

@FredApps

@FredApps FredApps commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #292

inferFullCommand now records "package.json has no test script" and goes on to the go.mod and Python checks. It returns that reason only when neither applies. A package.json with a test script is handled exactly as before.

Validation:

Unsupported: a package.json with no test script beside a Maven or Cargo project. inferFullCommand has no full command for those either way.

Merge order with #199: both edit the package-manager block of inferFullCommand (#293 moves it under an else), so whichever lands second needs main merged in; I will do that when the first lands. The resolution is #293's else structure with #199's bun run test lines; I checked it in a local merge of all our open PRs.

A Go or Python project that keeps a package.json only for tooling
(prettier, husky, commitlint) got no full command: inferFullCommand
stopped at "package.json has no test script", so every full fallback
of verify was blocked even though the selection ran pytest or go test.
A package.json without a test script now falls through to the go.mod
and Python checks, and its reason is kept only when neither matches.

Signed-off-by: FredApps <[email protected]>
@FredApps
FredApps marked this pull request as ready for review November 18, 2026 00:55
@adityankale190895
adityankale190895 merged commit e5ab844 into DiffCI:main Nov 18, 2026
13 checks passed
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.

CLI: a Go or Python project with a tooling-only package.json gets no full test command

2 participants