Automated Test Double Generator
Generates mocks, stubs, spies, and fakes for unit testing by analyzing code dependencies and framework requirements.
This skill empowers developers to streamline unit testing by automatically generating test doubles such as mocks, stubs, spies, and fakes. By analyzing the source code to identify external dependencies, it provides ready-to-use code snippets tailored for popular testing frameworks like Jest and Sinon. This significantly reduces the manual effort required to isolate units of code, ensuring more robust testing workflows and higher code coverage with minimal boilerplate.
Características Principales
01Automatic dependency analysis of source files
02Customizable behavior based on specific testing requirements
03Framework-specific generation for Jest and Sinon
04Direct integration via CLI commands (/gd, /gen-doubles)
05Support for mocks, stubs, spies, and fakes
06883 GitHub stars
Casos de Uso
01Mocking external API fetch calls in unit tests
02Creating service stubs to control dependencies in complex logic
03Implementing spies to track method interactions during testing