test-isolation

Community

Keep tests independent and deterministic.

Authoryanko-belov
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill ensures tests are fully isolated, with no shared state or dependencies between tests, enabling reliable, repeatable, and parallel-friendly test execution.

Core Features & Use Cases

  • Fresh instance per test to guarantee isolation.
  • Patterns for setup and teardown to prevent cross-test contamination.
  • Guidance for avoiding beforeAll and shared mutable state, with examples of proper test structure and isolation techniques.

Quick Start

Create a new test that uses beforeEach to initialize fresh service or repository, and afterEach to clean up resources. Avoid using beforeAll; ensure tests do not rely on other tests' state.

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: test-isolation
Download link: https://github.com/yanko-belov/code-craft/archive/main.zip#test-isolation

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 471,000+ vetted skills library on demand.