generate_jest_test
Generate a Jest test suite: real assertions from {input, expected|throws} cases, pending it.todo for described cases, async support, module mocks
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": {
"functionName": "<functionName>",
"modulePath": "<modulePath>"
},
"name": "generate_jest_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| async | No | ||
| mockDeps | No | Module paths to replace with automatic mocks | |
| testCases | No | Test cases. Either a description string (generated as a pending test) or {name, input: [args...], expected} / {name, input, throws: true | "message"} for a real assertion. | |
| modulePath | Yes | Import path of the module under test, e.g. ./src/orders/createOrder | |
| functionName | Yes |