Chromogen screenshot

Chromogen

Updated: 2 Mar 2023
280 Stars

UI-driven Jest test-generation package for Recoil selectors and Zustand store hooks

Categories

Overview

Chromogen has emerged as a game-changing tool for developers embracing the capabilities of Zustand and Recoil for state management in their React applications. In its latest version 4.0, Chromogen offers a streamlined process for generating unit tests, allowing developers to focus on building features rather than getting bogged down by the complexities of testing implementation details. With its user-friendly interface, it captures state changes during actual user interactions and quickly auto-generates Jest test suites that are ready to be utilized.

This tool is perfect for independent developers or teams that require efficiency without sacrificing quality in their work. Compatibility with React V18 ensures that you can leverage the latest features of React while maintaining robust testing capabilities. With Chromogen, testing becomes a quick and seamless process, providing confidence in your application’s reliability.

Features

  • Automatic Test Generation: Launch your app, interact as a user, and with one click, download a complete Jest test file that reflects real user experiences.
  • Support for Zustand and Recoil: Specifically designed for Zustand stores and Recoil selectors, allowing you to efficiently test both state management libraries.
  • Initial State Tracking: Captures the initial store state and tracks changes as actions are invoked, providing critical insights for testing.
  • Synchronous Selector Support: Generates tests for synchronous selectors and selectorFamilies, ensuring thorough coverage for Recoil applications.
  • Flexible Integration: Easily import the Chromogen components into your existing app structure for seamless setup and implementation.
  • React V18 Compatibility: Stay up to date with the latest enhancements in React while using Chromogen for your testing needs.
  • Clipboard Copy Feature: For those who prefer quick adjustments, you can copy the generated tests directly to your clipboard for immediate use.
  • Minimal Setup Requirement: With just two simple steps, you can integrate Chromogen into your Zustand applications, making it accessible for developers at any experience level.