Test (structured)
npm_testRuns Vitest or Jest from package.json and returns compact structured test results, listing only failures by default for focused debugging.
Instructions
Run vitest or jest (picked from package.json) and return structured test results: suites, pass/fail counts, failure messages. Much more compact than raw test output. Only failures are listed by default; use verbose=true for all tests.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Required. Project root directory | |
| pattern | No | Filter tests by filename pattern | |
| verbose | No | Include all tests in output (default: only failures) | |
| coverage | No | Enable coverage reporting |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| suites | Yes | ||
| summary | Yes | ||
| retained | No |