awesome-repositories.com
Blog
awesome-repositories.com

Descubre los mejores repositorios open-source con nuestra búsqueda potenciada por IA.

ExplorarBúsquedas curadasAlternativas open-sourceSoftware autohospedableBlogMapa del sitio
ProyectoAcerca deCómo clasificamosPrensaServidor MCP
Aviso legalPrivacidadTérminos
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
callstack avatar

callstack/react-native-testing-library

0
View on GitHub↗
3,390 estrellas·281 forks·TypeScript·MIT·6 vistasoss.callstack.com/react-native-testing-library↗

React Native Testing Library

Este proyecto es un framework de pruebas diseñado para aplicaciones React Native, que proporciona un conjunto de herramientas para renderizar componentes en un entorno de memoria controlado. Permite a los desarrolladores verificar el comportamiento y la estructura de las interfaces móviles simulando interacciones del usuario y monitoreando las transiciones del ciclo de vida de los componentes. Al aislar los componentes del resto de la aplicación, garantiza que las pruebas permanezcan estables e independientes.

El framework se distingue por su enfoque de accesibilidad primero, priorizando atributos orientados al usuario como roles, etiquetas y contenido de texto al consultar el árbol de componentes. Esta metodología asegura que las pruebas reflejen cómo un usuario real percibe e interactúa con la interfaz, en lugar de depender de detalles de implementación interna. También incluye un soporte robusto para operaciones asíncronas, sincronizando automáticamente las aserciones con actualizaciones de estado en segundo plano y renderizado de UI retrasado para evitar condiciones de carrera.

Más allá del renderizado y la interacción central, la biblioteca ofrece capacidades integrales para validar el estado de la UI, inspeccionar estilos de componentes y verificar propiedades de accesibilidad. Admite pruebas de hooks personalizados de forma aislada, la gestión de árboles de componentes complejos mediante inyección de proveedores y la realización de verificación estructural mediante snapshots. Estas características permiten un control de calidad exhaustivo en diversos escenarios de interfaces móviles.

Features

  • Component and Interaction Testing - Mounts components into a virtual environment to enable interaction and verification during testing.
  • React Native Testing Frameworks - Provides a specialized framework for testing mobile components by simulating user interactions and verifying rendered output through accessible, user-centric queries.
  • Scene Element Queries by Criteria - Enables retrieval of specific interface components using criteria like roles, labels, or text.
  • Asynchronous UI Test Verifications - Synchronizes test assertions with background state updates to verify application behavior in asynchronous scenarios.
  • User Interaction Simulation - Simulates user inputs like presses and gestures to verify application responsiveness to real-world behavior.
  • Component Content Validation - Check that interface elements display the correct text or accessible names to ensure that the information presented to the user matches the intended design.
  • Component Rendering Utilities - Provides utilities for mounting and rendering components in a controlled environment to facilitate testing.
  • Auto-Waiting Assertions - Pauses test execution while repeatedly checking conditions to ensure assertions account for delayed state changes.
  • Element State Assertions - Provides specialized matchers to verify element properties and accessibility status during UI state validation.
  • Asynchronous Test Handling - Synchronizes test assertions with asynchronous UI updates and state transitions.
  • React Component Testing - Implements a testing environment for mounting and verifying React-based mobile UI components in isolation.
  • Visual Assertion Validators - Asserts expectations about rendered output, including visibility and accessibility status, using specialized matchers.
  • Accessibility Query Engines - Provides an accessibility-first query engine to locate interface elements by roles and labels.
  • Asynchronous Element Waiting - Queries the component tree repeatedly until elements appear, synchronizing tests with asynchronous UI updates.
  • Test-Controlled State Updates - Forces state updates and asynchronous effects to complete before assertions run to prevent race conditions.
  • Rendered Tree Querying - Locates specific components in the rendered tree using attributes for state verification.
  • Component Snapshots - Generates JSON snapshots of component trees to facilitate structural verification.
  • User Action Intents - Locates components using user-centric intent criteria like roles and labels.
  • Component Tree Traversers - Navigates rendered component hierarchies to locate elements based on accessibility and structural properties.
  • Component Re-renderers - Supports re-rendering components with new properties to process asynchronous updates during testing.
  • Snapshot Verification Tools - Serializes rendered component trees into persistent snapshots to track and validate UI structure over time.
  • Test Isolation - Ensures test stability by mounting components into isolated, controlled memory environments.
  • Asynchronous Polling Mechanisms - Implements asynchronous polling mechanisms to synchronize test assertions with background UI updates.
  • Mobile Accessibility Auditing - Provides utilities for verifying that mobile interface elements correctly communicate their status and labels to assistive technologies.
  • Accessibility Testing Tools - Provides a testing environment that prioritizes user-facing roles and labels to ensure mobile interfaces are perceivable by assistive technologies.
  • Component Testing - Provides a library for verifying the behavior and structure of UI components through isolated testing and lifecycle management.
  • Text Rendering Stress Tests - Enforces runtime constraints by validating that text strings are correctly placed within designated containers.
  • Mobile Testing Frameworks - Offers a comprehensive testing environment for mobile applications that supports component rendering, state validation, and asynchronous event simulation.
  • Component Lifecycle Hooks - Wraps components in lifecycle hooks to monitor state transitions and side effects during testing.
  • Accessibility State Synchronization - Validates that interface elements correctly communicate their accessibility states to assistive technologies.
  • Custom Hook Testing - Enables testing of hook logic in isolation to verify state transitions and side effects without a full component tree.
  • User-Centric Verification - Enables testing mobile applications by querying elements based on how a real user perceives the interface.
  • Context Providers - Injects context providers and layout wrappers to simulate the application environment required for state management.
  • Element Wait Conditions - Monitors the component tree until elements are removed, confirming successful unmounting or hiding of UI components.
  • Scoped Queries - Allows restricting search queries to specific subtrees to isolate interactions within complex component structures.
  • Presence Verifiers - Validates the presence and existence of components within the rendered structure during tests.

Historial de estrellas

Gráfico del historial de estrellas de callstack/react-native-testing-libraryGráfico del historial de estrellas de callstack/react-native-testing-library

Búsqueda con IA

Explora más repositorios increíbles

Describe lo que necesitas en lenguaje sencillo: la IA clasifica miles de proyectos open-source curados por relevancia.

Start searching with AI

Colecciones destacadas con React Native Testing Library

Colecciones seleccionadas manualmente donde aparece React Native Testing Library.
  • una herramienta para probar la conectividad de red

Alternativas open-source a React Native Testing Library

Proyectos open-source similares, clasificados según cuántas características comparten con React Native Testing Library.
  • didi/mpxAvatar de didi

    didi/mpx

    3,905Ver en GitHub↗

    MPX is a cross-platform framework designed to build applications for multiple mini-program ecosystems and the web from a single codebase. It utilizes a static transpilation pipeline to transform source code into platform-specific bundles, employing a single-file component system that encapsulates templates, logic, and styles. The framework provides a reactive state management system that automatically synchronizes application data with the user interface through computed properties and watchers. The project distinguishes itself through a robust build-time toolchain that supports sub-package p

    JavaScript
    Ver en GitHub↗3,905
  • enzymejs/enzymeE

    enzymejs/enzyme

    19,831Ver en GitHub↗

    Enzyme is a testing utility for React components designed to verify their output and behavior in a test environment. It serves as a test harness for UI components, providing tools to render visual elements, manage state transitions, and simulate synthetic events. The library distinguishes itself through multiple rendering modes, including a shallow rendering engine for isolated unit testing and full DOM rendering for testing deep integration. It employs an adapter-based integration system to maintain compatibility across different versions of the underlying framework. The toolkit covers a br

    JavaScript
    Ver en GitHub↗19,831
  • jnicklas/capybaraAvatar de jnicklas

    jnicklas/capybara

    10,166Ver en GitHub↗

    Capybara is a browser automation testing library and framework for web application acceptance testing. It provides a high-level API for automating browser navigation and element interaction to validate user-facing features. The project features a cross-browser driver interface that allows switching between headless and full browser environments without modifying the underlying test code. This abstraction enables the simulation of complex web workflows across different browser drivers and environments. The suite covers user interaction simulation, including form filling, click events, and bro

    Ruby
    Ver en GitHub↗10,166
  • mobile-dev-inc/maestroAvatar de mobile-dev-inc

    mobile-dev-inc/Maestro

    10,788Ver en GitHub↗

    Maestro is a declarative mobile and web UI automation framework designed for end-to-end testing. It operates by querying the native accessibility tree of an application, allowing for black-box testing without requiring source code instrumentation or platform-specific dependencies. The framework distinguishes itself through a unified command syntax that abstracts interactions across Android, iOS, and web environments. It features a dynamic synchronization engine that automatically pauses test execution to account for non-deterministic animations and network-dependent content loading, ensuring

    Kotlinandroidblackbox-testingios
    Ver en GitHub↗10,788
Ver las 30 alternativas a React Native Testing Library→

Preguntas frecuentes

¿Qué hace callstack/react-native-testing-library?

Este proyecto es un framework de pruebas diseñado para aplicaciones React Native, que proporciona un conjunto de herramientas para renderizar componentes en un entorno de memoria controlado. Permite a los desarrolladores verificar el comportamiento y la estructura de las interfaces móviles simulando interacciones del usuario y monitoreando las transiciones del ciclo de vida de los componentes. Al aislar los componentes del resto de la aplicación, garantiza que las pruebas…

¿Cuáles son las características principales de callstack/react-native-testing-library?

Las características principales de callstack/react-native-testing-library son: Component and Interaction Testing, React Native Testing Frameworks, Scene Element Queries by Criteria, Asynchronous UI Test Verifications, User Interaction Simulation, Component Content Validation, Component Rendering Utilities, Auto-Waiting Assertions.

¿Qué alternativas de código abierto existen para callstack/react-native-testing-library?

Las alternativas de código abierto para callstack/react-native-testing-library incluyen: didi/mpx — MPX is a cross-platform framework designed to build applications for multiple mini-program ecosystems and the web from… enzymejs/enzyme — Enzyme is a testing utility for React components designed to verify their output and behavior in a test environment.… jnicklas/capybara — Capybara is a browser automation testing library and framework for web application acceptance testing. It provides a… mobile-dev-inc/maestro — Maestro is a declarative mobile and web UI automation framework designed for end-to-end testing. It operates by… rstacruz/cheatsheets — This project is a comprehensive collection of web development reference guides and technical cheat sheets. It provides… testing-library/react-hooks-testing-library — This project is a specialized test harness and mocking utility designed for unit testing React hooks in isolation. It…