Generate Test
generate_testCreate a runnable Vitest scaffold for an untested export, structuring arrange/act/assert and marking human-specified assertions with TODOs.
Instructions
Generate a runnable Vitest scaffold for a specific untested export, with arrange/act/assert structure and TODOs marking the assertions only a human can specify.
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": {
"path": "<path>",
"file": "<file>",
"exportName": "<exportName>"
},
"name": "generate_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Repo-relative path to the source file | |
| path | Yes | Absolute path to the repository root | |
| exportName | Yes | Name of the exported symbol to test |