Automock
Simpler Unit Tests for TypeScript
FreeOpen SourceCodeTesting32,552 impressions#2 of its week5 comments
Comments
>log in to comment- Harish Roufe· 3y ago
How is the automatic mocking of dependencies handled by Automock? Does it need to be manually configured?
- Shifullah Mansur· 3y ago
I recently gave it a go with a NestJS project. Very impressed with how much time the mock setup took off
- Sidi Jeddou· 3y ago
Wow, this looks interesting.
- mrisho· 3y ago
Awesome project...!!
- mta bsc· 3y ago
Really loving this one, It saves tons of boilerplate code in my testing - thanks!!
Automock provides a virtual isolated environment and automated mock generation to simplify unit testing in TypeScript DI frameworks like NestJS and Inversify.
- for
- TypeScript developers using dependency-injection frameworks
- pricing
- open source
- license
- Apache-2.0
Key features
- Virtual isolated environment — Creates a sandboxed context for tests to run without side effects.
- Automated mock generation — Generates mocks for classes and services automatically.
- DI framework support — Works with NestJS and Inversify out of the box.
- Open-source — Free to use and contributed by the community.
Use cases
- Generate mocks for NestJS services quickly
- Automate unit test creation for Inversify-based classes
- Reduce boilerplate in TypeScript test suites
- Run tests in a virtual, isolated environment
Automock FAQ
What problem does Automock solve?+
It streamlines unit testing in DI frameworks by providing a virtual environment and auto-generated mocks.
Which frameworks are supported?+
Automock currently supports NestJS and Inversify.
Is Automock free to use?+
Yes, it is an open-source project.
Where can I find the latest documentation?+
The project has migrated to Suites; see suites.dev for up-to-date docs.
Can Automock be used with other DI frameworks?+
The documentation mentions NestJS and Inversify; support for other frameworks isn’t specified.
Summarized by DevHunt from automock.dev · Sep 27, 2026. Details may change; check the official site.