awesome-repositories.com
ब्लॉग
awesome-repositories.com

AI-संचालित खोज के साथ बेहतरीन ओपन-सोर्स रिपॉजिटरी खोजें।

एक्सप्लोर करेंक्यूरेटेड खोजेंओपन-सोर्स विकल्पसेल्फ-होस्टेड सॉफ्टवेयरब्लॉगसाइटमैप
प्रोजेक्टहमारे बारे मेंहम रैंकिंग कैसे करते हैंप्रेसMCP सर्वर
कानूनीगोपनीयताशर्तें
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
testing-library avatar

testing-library/react-hooks-testing-library

0
View on GitHub↗
5,266 स्टार्स·230 फोर्क्स·TypeScript·MIT·13 व्यूज़react-hooks-testing-library.com↗

React Hooks Testing Library

This project is a specialized test harness and mocking utility designed for unit testing React hooks in isolation. It provides a simulated component environment that executes hook logic and tracks returned values without requiring a full user interface.

The library enables the verification of hook lifecycles, including mounting, updating, and unmounting phases. It features mechanisms for injecting properties to force re-renders and an asynchronous waiting system to ensure state updates are processed before assertions are run.

The toolset covers state management verification, automated lifecycle cleanup to prevent state leakage between tests, and the ability to trigger state updates to verify how hooks respond to changing inputs.

Features

  • Hook Execution Wrappers - Executes hooks inside a minimal React component to simulate a real lifecycle and access hook state.
  • Custom Hook Testing - Implements a specialized harness for verifying the state transitions and return values of custom hooks in isolation.
  • Hook Return Value Tracking - Captures and tracks the latest return values of hooks during render cycles for external inspection.
  • Hook Mocking Utilities - Provides a framework for injecting props and awaiting asynchronous updates within a simulated React environment.
  • Test Harnesses - Implements a simulated environment (test harness) to validate hook logic without a full UI.
  • Headless Render Cycle Controllers - Manages the timing of hook execution and state updates to ensure predictable behavior in headless environments.
  • Asynchronous Polling Mechanisms - Provides polling mechanisms to wait for asynchronous state updates before running test assertions.
  • Asynchronous Test Handling - Provides capabilities for managing tests that rely on asynchronous hook operations and promise resolutions.
  • React Testing Utilities - Provides specialized utilities for unit testing React hooks in isolation by simulating a component environment.
  • Component Prop Injection - Allows injecting dynamic properties into a wrapper component to trigger hook re-renders and test various inputs.
  • Hook Property Injection - Passes custom arguments and initial values to hooks to verify behavior across different configurations.
  • State Update Triggering - Provides capabilities to simulate user interactions and state changes to verify that hook return values update correctly.
  • Hook Lifecycle Testing - Ensures that effects and cleanup functions within a hook execute correctly across all lifecycle phases.
  • Test State Cleanup - Includes mechanisms to clear hook state and unmount components to prevent pollution between tests.
  • Test Lifecycle Hooks - Provides mechanisms to unmount test components to trigger cleanup effects and hydrate for interaction.
  • Test Lifecycle Hooks - Automatically executes cleanup functions after tests to remove rendered hooks and prevent state leakage.
  • Hook State Verifications - Verifies that a hook correctly manages internal state and updates its output based on changing triggers.
  • State Response Testers - Utilities for verifying how hooks respond to state changes by triggering re-renders and managing cleanup.
  • Test-Controlled State Updates - Executes state updates and effects within a wrapper to ensure all changes finish before assertions.

स्टार हिस्ट्री

testing-library/react-hooks-testing-library के लिए स्टार हिस्ट्री चार्टtesting-library/react-hooks-testing-library के लिए स्टार हिस्ट्री चार्ट

AI सर्च

और अधिक बेहतरीन रिपॉजिटरी खोजें

अपनी ज़रूरत को सरल भाषा में बताएं — AI हजारों क्यूरेटेड ओपन-सोर्स प्रोजेक्ट्स को प्रासंगिकता के आधार पर रैंक करता है।

Start searching with AI

React Hooks Testing Library के ओपन-सोर्स विकल्प

समान ओपन-सोर्स प्रोजेक्ट्स, जो React Hooks Testing Library के साथ साझा की गई सुविधाओं के आधार पर रैंक किए गए हैं।
  • callstack/react-native-testing-librarycallstack का अवतार

    callstack/react-native-testing-library

    3,390GitHub पर देखें↗

    This project is a testing framework designed for React Native applications, providing a suite of tools to render components in a controlled memory environment. It enables developers to verify the behavior and structure of mobile interfaces by simulating user interactions and monitoring component lifecycle transitions. By isolating components from the rest of the application, it ensures that tests remain stable and independent. The framework distinguishes itself through an accessibility-first approach, prioritizing user-facing attributes like roles, labels, and text content when querying the c

    TypeScriptjestreactreact-native
    GitHub पर देखें↗3,390
  • avajs/avaavajs का अवतार

    avajs/ava

    20,849GitHub पर देखें↗

    Ava is a test runner for JavaScript and TypeScript designed to execute test suites with a focus on concurrency and isolation. It serves as a concurrent test executor that runs test files in parallel across multiple processes to reduce total runtime and prevent state leakage between suites. The project features a built-in snapshot testing framework that saves large data structures to disk and compares subsequent executions to detect regressions via diffs. It is also compatible with the Test Anything Protocol, allowing it to export results for use with external reporting tools. Its capability

    JavaScriptassertasyncasync-functions
    GitHub पर देखें↗20,849
  • thomhurst/tunitthomhurst का अवतार

    thomhurst/TUnit

    3,744GitHub पर देखें↗

    TUnit is a comprehensive C# testing framework, mocking library, and fluent assertion tool. It utilizes source generation for test discovery and mock creation, ensuring compatibility with Native AOT and IL trimming by eliminating the need for runtime reflection and proxies. The framework provides specialized capabilities for integration testing, including the management of distributed application lifecycles, isolated database schemas, and the correlation of telemetry and logs across process boundaries via OTLP. It also includes an HTTP testing utility to intercept network exchanges and mock AP

    C#csharpdotnettest
    GitHub पर देखें↗3,744
  • onsi/ginkgoonsi का अवतार

    onsi/ginkgo

    9,014GitHub पर देखें↗

    Ginkgo is a behavior-driven development testing framework, assertion library, and test runner for Go. It provides a domain-specific language for writing human-readable specifications, organizing tests into hierarchical containers and subjects to describe system behavior. The project distinguishes itself through advanced execution control and observability, featuring a test runner capable of parallel distribution, sharding, and randomized execution order to detect flaky tests. It includes specialized diagnostic tools for goroutine leak detection, hanging spec monitoring, and failure state debu

    Go
    GitHub पर देखें↗9,014
React Hooks Testing Library के सभी 30 विकल्प देखें→

अक्सर पूछे जाने वाले प्रश्न

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 provides a simulated component environment that executes hook logic and tracks returned values without requiring a full user interface.

testing-library/react-hooks-testing-library की मुख्य विशेषताएं क्या हैं?

testing-library/react-hooks-testing-library की मुख्य विशेषताएं हैं: Hook Execution Wrappers, Custom Hook Testing, Hook Return Value Tracking, Hook Mocking Utilities, Test Harnesses, Headless Render Cycle Controllers, Asynchronous Polling Mechanisms, Asynchronous Test Handling।

testing-library/react-hooks-testing-library के कुछ ओपन-सोर्स विकल्प क्या हैं?

testing-library/react-hooks-testing-library के ओपन-सोर्स विकल्पों में शामिल हैं: callstack/react-native-testing-library — This project is a testing framework designed for React Native applications, providing a suite of tools to render… avajs/ava — Ava is a test runner for JavaScript and TypeScript designed to execute test suites with a focus on concurrency and… thomhurst/tunit — TUnit is a comprehensive C# testing framework, mocking library, and fluent assertion tool. It utilizes source… onsi/ginkgo — Ginkgo is a behavior-driven development testing framework, assertion library, and test runner for Go. It provides a… uber-go/goleak — Goleak is a diagnostic utility designed to identify and report leaked goroutines within Go applications. By… jnicklas/capybara — Capybara is a browser automation testing library and framework for web application acceptance testing. It provides a…