NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

[DX] Documented plugin test command fails because nemoclaw/package.json has no test script

Open Thabhelo opened this issue 6 months ago • 3 comments

[DX] Documented plugin test command fails because nemoclaw/package.json has no test script

Summary

The contributor guide documents cd nemoclaw && npm test as the plugin unit-test command, but the plugin package does not define a test script.

Why it matters

External contributors following the documented setup hit npm error Missing script: "test" before they can verify plugin changes. This is a small developer-experience paper cut, but it affects the first local validation path for plugin contributions.

Evidence

  • CONTRIBUTING.md lists cd nemoclaw && npm test under Main Tasks.
  • CLAUDE.md and AGENTS.md also list cd nemoclaw && npm test as the plugin test command.
  • nemoclaw/package.json has build, dev, lint, lint:fix, format, format:check, check, and clean, but no test.
  • Running cd nemoclaw && npm install && npm test currently fails with:
npm error Missing script: "test"

Reproduction or verification

Safe local steps:

cd nemoclaw
npm install
npm test

Expected: plugin Vitest suite runs.

Actual: npm reports that the test script is missing.

Proposed fix

Add a test script to nemoclaw/package.json:

"test": "vitest run"

This aligns the package with the existing contributor docs and the Vitest dependency already declared in the plugin package.

Test plan

  • cd nemoclaw && npm test
  • cd nemoclaw && npm run check

Contribution offer

I’m happy to work on this if maintainers agree with the direction.

Thabhelo avatar May 12 '26 17:05 Thabhelo

I think it is fixed in #3367

laitingsheng avatar May 13 '26 09:05 laitingsheng

Ohh, Thanks for the pointer. I checked #3367 and you’re right. My fault I’ll close this as resolved by #3367.

Thabhelo avatar May 14 '26 04:05 Thabhelo

Closing as already-fixed on main.

nemoclaw/package.json now has:

"test": "vitest run --config vitest.config.ts",

cd nemoclaw && npm install && npm test runs the plugin Vitest suite as documented in CONTRIBUTING.md and CLAUDE.md. Re-open if it still errors with Missing script: "test" on the latest main.

cjagwani avatar May 14 '26 06:05 cjagwani