Skip to content

Replace placeholder npm test script with useful validation #18

@antfleet-ops

Description

@antfleet-ops

Summary

npm test is currently configured as the default placeholder command:

"test": "echo \"Error: no test specified\" && exit 1"

That means any user, maintainer, or CI workflow that runs the standard npm test command gets an intentional failure rather than a useful validation result.

Evidence

  • package.json line 8 defines test as echo "Error: no test specified" && exit 1.

Why this matters

For a published SDK, npm test is the most common validation entry point. A permanently failing default script can make CI integrations fail, confuse contributors, and hide whether the package actually has a supported test command.

Suggested fix

Either:

  • replace the placeholder with a real test command, or
  • remove the test script until tests exist, or
  • change it to a clearly named placeholder that does not fail routine package validation unless failure is intentional.

Suggested regression check

Run npm test in a clean checkout and verify it reflects the intended project validation behavior.


Found by AntFleet's Virtuals-backed public repo scan using an Opus-first, blind GPT confirmation workflow. This same root cause was independently matched from multiple feature slices, so it is filed once here to avoid duplicate issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions