mobile-testing

Add unit and integration tests to React Native Expo or Flutter apps.

2|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/TMHSDigital/Mobile-App-Developer-Tools --skill mobile-testing-tmhsdigital
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mobile-testing
Source: https://github.com/TMHSDigital/Mobile-App-Developer-Tools/tree/main/skills/mobile-testing
Command: npx skills add https://github.com/TMHSDigital/Mobile-App-Developer-Tools --skill mobile-testing-tmhsdigital

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers often lack a clear, end‑to‑end guide for adding unit and integration tests to mobile projects, leading to fragile code and missed coverage.

Core Features & Use Cases

  • Cross‑framework support: Provides setup instructions for both Expo (React Native) and Flutter apps.
  • Testing tools: Configures Jest with React Native Testing Library for Expo, and flutter_test with mocktail for Flutter.
  • File organization: Shows conventions for locating test files and generating scaffolds.
  • Mocking & snapshots: Includes guidance on mocking native modules and creating snapshot tests.

Quick Start

Use the mobile-testing skill to add unit tests to my Expo app's components.

Frequently Asked Questions about mobile-testing

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

FAQPage Schema
How do I set up unit and integration tests for a React Native Expo app?

Setting up unit and integration tests for React Native Expo involves installing Jest and React Native Testing Library, configuring the test runner, and organizing test files to cover components, hooks, and utilities.

Can I use this mobile-testing approach to configure flutter_test and mocktail?

Yes, you can configure flutter_test with mocktail for Flutter apps. The setup involves organizing test files for full app coverage and configuring the test runner to execute unit and integration tests.

What is the best way to mock native modules in Jest for mobile apps?

The best way to mock native modules in Jest is to apply mocking guidance during test setup. This ensures native dependencies are properly simulated when running unit and integration tests for your mobile application.

Does this testing setup support generating test scaffolds via MCP tools?

Yes, the setup optionally supports generating test scaffolds via MCP tools. This allows you to automatically create initial test file structures for your Expo or Flutter mobile application components and utilities.

How do I create snapshot tests for mobile app components?

To create snapshot tests for mobile app components, follow the included guidance on creating snapshots alongside configuring Jest or flutter_test. This captures component rendering output to prevent unexpected UI regressions.

Why do I need to configure a test runner when adding tests to my mobile project?

Configuring a test runner is required when adding tests to your mobile project because it executes your unit and integration test suites. Proper configuration ensures testing dependencies are resolved and test files are correctly discovered.