component-view-test

Create React Native component tests driven by Redux state without mocks.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/abretonc7s/metamask-skills --skill component-view-test-abretonc7s
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component-view-test
Source: https://github.com/abretonc7s/metamask-skills/tree/main/domains/testing/skills/component-view-test
Command: npx skills add https://github.com/abretonc7s/metamask-skills --skill component-view-test-abretonc7s

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

It simplifies writing and maintaining component view tests by providing a dedicated framework that ensures reliable, integrated tests for UI components in mobile codebases.

Core Features & Use Cases

  • Facilitates creating, updating, and fixing component view tests for React Native components.
  • Provides guidelines to ensure tests drive behavior through Redux state without mock violations.
  • Supports running tests with platform-specific configurations and provides detailed reference instructions for workflows like navigation and failure diagnosis.

Quick Start

Use the component view test framework to write or update tests by importing platform-specific renderers and then assert UI states and interactions directly.

Frequently Asked Questions about component-view-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write behavior-driven component integration tests for React Native?

To write behavior-driven component integration tests for React Native, you create tests that drive UI behavior through Redux state. This framework helps you assert UI states and interactions directly without relying on mock violations.

Why do my React Native component tests fail when using mocks for Redux state?

React Native component tests fail with mocks because they bypass actual Redux state logic. This framework ensures tests drive behavior through real Redux states, providing comprehensive failure diagnosis and improving test reliability.

What is the best way to run React Native component tests with platform-specific configurations?

The best way to run React Native component tests with platform-specific configurations is by importing platform-specific renderers. This framework supports cross-platform testing and provides reference instructions for navigation workflows.

Can I test MetaMask Mobile UI components without using mocks?

Yes, you can test MetaMask Mobile UI components without mocks. This framework provides guidelines to ensure tests drive component behavior through actual Redux state, avoiding mock violations and ensuring reliable integrated tests.

When do I need a dedicated framework for React Native component view testing?

You need a dedicated framework for React Native component view testing when maintaining reliable, integrated tests for mobile codebases. It simplifies creating, updating, and fixing tests by ensuring behavior is driven by Redux state.