eigen-testing

Write and maintain React Native tests using React Native Testing Library and Relay Test Utils.

3.8k|591|Updated Jan 22, 2015
One-click install
npx skills add https://github.com/artsy/eigen --skill eigen-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: eigen-testing
Source: https://github.com/artsy/eigen/tree/main/.claude/skills/eigen-testing
Command: npx skills add https://github.com/artsy/eigen --skill eigen-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill streamlines the process of writing, maintaining, and understanding tests for the Eigen React Native application, ensuring code quality and reliability.

Core Features & Use Cases

  • Test Generation: Write new unit and integration tests for components and features.
  • Test Maintenance: Fix failing tests, update existing test suites, and improve test coverage.
  • Best Practices: Provides guidance on Eigen's specific testing patterns, utilities, and conventions.
  • Use Case: When developing a new feature, use this skill to generate comprehensive tests that adhere to Eigen's established testing framework and naming conventions.

Quick Start

Use the eigen-testing skill to write tests for the new UserProfileHeader component.

Frequently Asked Questions about eigen-testing

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

FAQPage Schema
How do I write unit tests for React Native components in Eigen?

To write unit tests for Eigen React Native components, use React Native Testing Library alongside Relay Test Utils. This skill applies specific testing utilities and documented patterns to generate new tests, fix failing suites, and improve overall code coverage.

What's the best way to fix failing integration tests for a Relay component?

The best way to fix failing integration tests for a Relay component is to apply Eigen's established testing conventions. This skill leverages Relay Test Utils to update existing test suites, resolve failures, and maintain test reliability for the application.

Do I need specific testing utilities to maintain test coverage for Eigen?

Yes, maintaining test coverage for Eigen requires React Native Testing Library and Relay Test Utils. The skill utilizes these specific dependencies to ensure new tests and updates strictly adhere to the codebase's established testing framework and best practices.

How does this approach handle test generation for new features?

Test generation for new features works by applying Eigen's specific testing patterns and naming conventions. It uses React Native Testing Library to write comprehensive unit and integration tests that immediately align with the existing codebase framework.

Why are my React Native tests failing after adding new Relay components?

Your React Native tests may be failing because they lack proper Relay Test Utils mock implementations. This skill provides guidance on Eigen's specific testing patterns to update test suites, fix failures, and ensure components are correctly tested.