Test

Run tests for the core package. Use when the user asks to run tests.

maxgraph 70cc8b7 823 B Updated

File contents

Test

Launch a sub-agent (Agent tool) to run tests. This keeps verbose test output out of the main context.

Sub-agent prompt

Use the Agent tool with a timeout of 180000ms:

Command logic:

  • No arguments → npm test -w packages/core
  • --coveragenpm test -w packages/core -- --coverage
  • A file path → npm test -w packages/core -- $ARGUMENTS
  • ts-supportnpm test -w packages/ts-support
  • checknpm run test-check -w packages/core
Run the command from the project root.
Wait for completion. Report ONLY:
- SUCCESS or FAILURE
- Number of test suites and tests passed/failed
- If failed: the FIRST failing test (max 20 lines)
- Test duration
Do NOT paste the full log.

maxgraph/maxgraph/tree/main/.claude/skills/test commit 70cc8b7c2f

Frequently asked questions

npx skillmds@latest add maxgraph/test