generate_vitest_component_test
Generate Vitest component tests with @vue/test-utils or @testing-library/svelte, stubs, and coverage
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": {
"componentName": "<componentName>",
"framework": "<framework>"
},
"name": "generate_vitest_component_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| framework | Yes | Frontend framework | |
| testCases | No | Comma-separated test case descriptions | |
| withMocks | No | Include vi.mock() for dependencies | |
| withCoverage | No | Include v8 coverage config | |
| componentName | Yes | Component name to test |