expo-testing

Set up Jest and React Native Testing Library for Expo component, hook, and store tests.

Updated Mar 3, 2026
One-click install
npx skills add https://github.com/addisualemu/basic_expo --skill expo-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: expo-testing
Source: https://github.com/addisualemu/basic_expo/tree/main/generator/.cursor/skills/expo-testing
Command: npx skills add https://github.com/addisualemu/basic_expo --skill expo-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the need for robust testing in Expo applications by setting up and integrating unit and integration tests for components, hooks, and stores.

Core Features & Use Cases

  • Test Setup: Configures Jest with jest-expo and integrates React Native Testing Library.
  • Test Placement: Guides on where to place component, hook, and store tests within the project structure.
  • Testing Focus: Provides guidelines on what aspects of the application to test, emphasizing user-centric queries.
  • Use Case: After developing a new feature in your Expo app, you can use this skill to automatically generate and place the necessary test files, ensuring the feature works as expected and maintaining code quality.

Quick Start

Use the expo-testing skill to add unit tests for the Button component.

Frequently Asked Questions about expo-testing

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

FAQPage Schema
How do I set up Jest and React Native Testing Library for my Expo app?

To set up Jest testing in your Expo app, this Skill configures Jest with `jest-expo` and integrates React Native Testing Library to test components, hooks, and stores effectively.

What is the best way to test Zustand stores in an Expo application?

The best way to test Zustand stores in an Expo application is using this Skill's integration testing setup, which supports testing state stores alongside UI components using Jest.

Where should I place unit and integration tests in an Expo project?

You should place unit and integration tests within your Expo project structure according to the specific placement guidelines provided for component, hook, and store tests.

Does this testing setup support writing integration tests for Expo hooks?

Yes, this setup supports writing integration tests for Expo hooks, providing specific guidelines and best practices for testing hooks using React Native Testing Library.

What aspects of my Expo UI components should I focus on when testing?

When testing Expo UI components, you should focus on user-centric queries and follow the provided testing guidelines to ensure your UI components behave as expected.

Can I automatically generate test files for new features in my Expo app?

Yes, after developing a new feature, you can use this Skill to automatically generate and place the necessary Jest test files to ensure the feature works and maintain code quality.