generate_component_test
Generate comprehensive React Native component tests with support for unit, integration, e2e, accessibility, performance, and snapshot tests using Jest, Detox, or Maestro.
Instructions
Generate comprehensive React Native component tests following industry best practices
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": {
"component_code": "<component_code>",
"component_name": "<component_name>"
},
"name": "generate_component_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| component_code | Yes | React Native component code to generate tests for | |
| component_name | Yes | Name of the component | |
| test_type | No | Type of tests to generate | comprehensive |
| testing_framework | No | Testing framework preference | jest |
| include_accessibility | No | Include accessibility tests | |
| include_performance | No | Include performance tests | |
| include_snapshot | No | Include snapshot tests |