nodejs_test
Run Node.js tests using Jest, Vitest, or Mocha with options for coverage, watch mode, and custom test patterns.
Instructions
Run Node.js tests with Jest, Vitest, or Mocha
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "nodejs_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Additional arguments | |
| watch | No | Run tests in watch mode | |
| timeout | No | Command timeout in milliseconds | |
| verbose | No | Enable verbose output | |
| coverage | No | Enable coverage reporting | |
| directory | No | Working directory | |
| testPattern | No | Test file pattern (e.g., "**/*.test.ts") | |
| testFramework | No | Test framework to use (auto-detected by default) |