runTest
Execute frontend tests using Jest or Cypress frameworks for unit, component, and end-to-end testing. Input source and test code, specify framework and test type, and configure parameters to validate functionality effectively.
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": {
"sourceCode": "<sourceCode>",
"testCode": "<testCode>",
"framework": "<framework>",
"type": "<type>"
},
"name": "runTest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | No | ||
| framework | Yes | ||
| sourceCode | Yes | ||
| testCode | Yes | ||
| type | Yes |