asyncredux-testing-wait-methods

Community

Precise wait methods for reliable async testing.

Authormarcglasberg
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the challenge of coordinating asynchronous Redux actions during automated testing, ensuring tests progress only when the desired conditions are met.

Core Features & Use Cases

  • waitCondition(): wait for the store state to meet a predicate.
  • waitAllActions(): wait for all dispatched actions to finish or for none to be in progress.
  • waitActionType() & waitAllActionTypes(): wait for specific action types to finish, singly or in combination.
  • waitAnyActionTypeFinishes(): wait for any one of multiple action types to finish, including nested actions.
  • waitActionCondition(): low-level, predicate-based waiting on in-progress actions.
  • Use case: test a multi-step workflow where subsequent steps depend on intermediate actions finishing.

Quick Start

Set up a Store with an initial state, dispatch asynchronous actions, and use the appropriate wait method to pause tests until the expected state or actions complete. Example steps: create a store, dispatch actions, await store.waitCondition(state => condition), then assert expected state, or await store.waitAllActions([ActionA, ActionB]).

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: asyncredux-testing-wait-methods
Download link: https://github.com/marcglasberg/async_redux/archive/main.zip#asyncredux-testing-wait-methods

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.