tessl i github:jeremylongshore/claude-code-plugins-plus-skills --skill generating-test-doublesThis skill uses the test-doubles-generator plugin to automatically create mocks, stubs, spies, and fakes for unit testing. It analyzes dependencies in the code and generates appropriate test doubles based on the chosen testing framework, such as Jest, Sinon, or others. Use this skill when you need to generate test doubles, mocks, stubs, spies, or fakes to isolate units of code during testing. Trigger this skill by requesting test double generation or using the `/gen-doubles` or `/gd` command.
This skill empowers Claude to streamline unit testing by automatically generating test doubles (mocks, stubs, spies, and fakes). It analyzes the code under test, identifies dependencies, and creates the necessary test doubles, significantly reducing the time and effort required to write effective unit tests.
This skill activates when you need to:
User request: "Generate mocks for the fetchData function in dataService.js using Jest."
The skill will:
dataService.js file to identify the fetchData function and its dependencies.fetchData, allowing you to simulate API responses.User request: "Create stubs for the NotificationService in userService.js using Sinon."
The skill will:
userService.js and identify the NotificationService dependency.NotificationService, enabling you to control its behavior during testing of userService.js.This skill integrates directly with your codebase by providing generated test double code snippets that can be easily copied and pasted into your unit tests. It supports popular testing frameworks and enhances the overall testing workflow.
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.