midnight-cq:compact-testing

Official

Deterministic Compact contract testing made easy

Authordevrelaicom
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill enables deterministic, reproducible unit testing for Compact contracts by providing a structured testing framework and guidance for mock patterns, witnesses, and simulator-driven workflows.

Core Features & Use Cases

  • Structured test layout: Guides 4-layer test structure (production source, witnesses, mocks, simulators) for reliable contract testing.
  • Mock pattern guidance: Details standard mock patterns to enable deployable wrappers around modules under test.
  • Witness management: Explains how to override and manage witnesses to simulate different private states and scenarios.
  • Simulator-centric testing: Demonstrates how to use the OpenZeppelin-compact contracts-simulator to drive pure/impure circuits with automatic ledger/context handling.

Quick Start

Install the simulator-based testing framework and bootstrap a basic Ownable test to verify initialization and access control.

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: midnight-cq:compact-testing
Download link: https://github.com/devrelaicom/midnight-expert/archive/main.zip#midnight-cq-compact-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 471,000+ vetted skills library on demand.