Lean Mosh is a lightweight, modular mocking framework built for speed and control. It strips away complexity and keeps your test environments simple, predictable, and fast. With Lean Mosh, you can run isolated tests without the heavy dependency chains that slow continuous integration. Every mock is explicit. Every state is clear. No hidden side effects.
Traditional mock libraries often bring in layers of abstraction that blur the real behavior you’re testing. They can inflate your feedback loop and create fragile, high-maintenance test setups. Lean Mosh avoids this by using direct, transparent mocks with minimal runtime overhead. Mocks spin up and tear down in milliseconds, making it ideal for high-volume automated test suites.
Lean Mosh fits into existing codebases without forcing a full rewrite. You can start by swapping out a single slow mock and scale up as you see gains. Pure function mocks, stateless patterns, and event-driven hooks make it easy to test async workflows with precision. This reduces flakiness, shrinks build times, and improves developer focus.