composable-svelte-testing

Community

Exhaustive store testing for Composable Svelte.

Authorjonathanbelolo
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Testing patterns for Composable Svelte enable teams to validate business logic without UI integration, ensuring reducers and effects behave deterministically.

Core Features & Use Cases

  • Exhaustive state testing with TestStore's send/receive pattern.
  • Mock dependencies (API, clocks, websockets) to simulate real-world scenarios.
  • Guidance on composing reducers, testing nested scopes, and validating side effects.

Quick Start

Install the testing utilities and write a simple TestStore-based test:

  • Create a TestStore with an initial state, reducer, and mocked dependencies.
  • Dispatch actions with store.send and assert intermediate state.
  • Handle effect outputs with store.receive and assert final state.
  • Call store.finish() to ensure there are no pending actions.

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: composable-svelte-testing
Download link: https://github.com/jonathanbelolo/composable-svelte/archive/main.zip#composable-svelte-testing

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.