generate_test
Generate Vitest test files for modules, entities, workflows, pages, or widgets by providing the module path and test type.
Instructions
Generate Vitest test files for modules, entities, workflows, pages, or widgets
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": {
"modulePath": "<modulePath>",
"testType": "<testType>"
},
"name": "generate_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| testType | Yes | Type of test to generate | |
| targetKey | No | Target key (entity key, workflow key, page key, or widget key) | |
| modulePath | Yes | Path to module directory |