nullables
CommunityTest without mocks with Nullables.
Software Engineering#testing#configurable responses#nullables#embedded stubs#infrastructure wrappers#output tracking#without mocks
Authorlexler
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Nullables provide production-like wrappers that run real code with controlled infrastructure I/O, letting tests exercise logic without brittle mocks and while keeping tests fast and deterministic.
Core Features & Use Cases
- Sociable tests: run real code with nullified infra
- Configurable responses: configure external system behavior at the caller's abstraction level
- Output Tracking: observe what was written without performing real I/O
- Embedded Stubs: embed minimal third-party behavior alongside wrappers
- Use cases: testing code that interacts with HTTP, files, databases, clocks, and randomness, and migration from mocks
Quick Start
- Create a Nullable for a dependency using createNull()
- Use trackOutput() to observe results
- Run tests and verify outcomes
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: nullables Download link: https://github.com/lexler/skill-factory/archive/main.zip#nullables Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.