node_test
Run tests in Node.js/TypeScript projects using Jest, Vitest, or Mocha and receive structured test results.
Instructions
Run tests for a Node.js/TypeScript project using Jest, Vitest, or Mocha. Returns structured test results.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectPath": "<projectPath>"
},
"name": "node_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coverage | No | Generate coverage report (default: false) | |
| failFast | No | Stop on first failure (default: false) | |
| projectPath | Yes | Path to the project root directory | |
| testPattern | No | Test file or name pattern | |
| testFramework | No | Test framework (auto-detected if not specified) | |
| packageManager | No | Package manager to use (auto-detected if not specified) |