signalize-testing

Enforce signalize testing patterns with count assertions and cleanup helpers.

30|1|Updated Sep 16, 2021
One-click install
npx skills add https://github.com/spearwolf/signalize --skill signalize-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: signalize-testing
Source: https://github.com/spearwolf/signalize/tree/main/skills/signalize-testing
Command: npx skills add https://github.com/spearwolf/signalize --skill signalize-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Testing signalize code helps ensure there are no leaked signals, effects, or links, and that tests don't interfere with each other.

Core Features & Use Cases

  • Count-based assertions to verify clean state, such as getSignalsCount, getEffectsCount, and getLinksCount.
  • Cleanup patterns using destroySignal and SignalGroup to ensure resources are released after tests.
  • Test setup practices with beforeEach/afterEach to maintain isolation and detect leaks early.
  • Verify lifecycle and behavior of effects and batches to ensure deterministic test results.

Quick Start

Apply these testing patterns to validate cleanup, isolation, and correct lifecycle behavior of signalize components in your codebase.

Frequently Asked Questions about signalize-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent signal and effect leaks in my tests?

Testing signalize code requires applying cleanup patterns using destroySignal and SignalGroup to ensure resources are released after tests. Count-based assertions like getSignalsCount and getEffectsCount verify that no signals or effects have leaked across your test suite.

What is the best way to isolate signalize test state across multiple test suites?

Isolating signalize test state requires using beforeEach and afterEach test setup practices to maintain isolation and detect leaks early. These test helpers ensure deterministic results by preventing tests from interfering with each other.

How do I assert counts for signals, effects, and links during testing?

You can assert counts for signals, effects, and links by using getSignalsCount, getEffectsCount, and getLinksCount assertions. These count-based assertions verify a clean state and ensure reliable lifecycle behavior across your signalize test suite.

How do I verify the lifecycle and behavior of effects and batches in signalize?

Verifying the lifecycle and behavior of effects and batches ensures deterministic test results in signalize. Applying targeted testing patterns validates that effects execute correctly and resources are properly cleaned up.

When should I use SignalGroup instead of destroySignal for test cleanup?

Using SignalGroup instead of destroySignal depends on your test cleanup patterns for managing multiple resources. SignalGroup aggregates signals for batch cleanup, while destroySignal targets individual signal resources to prevent leaks.