Skip to main content
Glama

React Native MCP Server

by MrNitro360

generate_component_test

Create comprehensive React Native component tests for unit, integration, e2e, and snapshot scenarios. Supports Jest, Detox, and Maestro testing frameworks with options for accessibility and performance checks.

Instructions

Generate comprehensive React Native component tests following industry best practices

Input Schema

NameRequiredDescriptionDefault
component_codeYesReact Native component code to generate tests for
component_nameYesName of the component
include_accessibilityNoInclude accessibility tests
include_performanceNoInclude performance tests
include_snapshotNoInclude snapshot tests
test_typeNoType of tests to generatecomprehensive
testing_frameworkNoTesting framework preferencejest

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "component_code": { "description": "React Native component code to generate tests for", "type": "string" }, "component_name": { "description": "Name of the component", "type": "string" }, "include_accessibility": { "default": true, "description": "Include accessibility tests", "type": "boolean" }, "include_performance": { "default": true, "description": "Include performance tests", "type": "boolean" }, "include_snapshot": { "default": true, "description": "Include snapshot tests", "type": "boolean" }, "test_type": { "default": "comprehensive", "description": "Type of tests to generate", "enum": [ "unit", "integration", "e2e", "comprehensive" ], "type": "string" }, "testing_framework": { "default": "jest", "description": "Testing framework preference", "enum": [ "jest", "detox", "maestro" ], "type": "string" } }, "required": [ "component_code", "component_name" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MrNitro360/React-Native-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server