setup-test

Community

Standardize Cubit tests with clear resets.

Authormarcglasberg
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Creates a consistent, repeatable test setup for Cubits using bloc_superpowers by ensuring state is reset between tests and providing deterministic async control.

Core Features & Use Cases

  • Enforces test isolation by invoking Superpowers.clear() in setUp to reset state between tests.
  • Guides testing of loading and error states with Completers to control asynchronous flows.
  • Demonstrates a complete testing pattern with common utilities (bloc_test, mocktail) and proper setup/teardown.

Quick Start

In your test suite, call setUp to reset Superpowers state between tests using Superpowers.clear().

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: setup-test
Download link: https://github.com/marcglasberg/bloc_superpowers/archive/main.zip#setup-test

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.