Skip to content

a5c-ai/babysitter / library/specializations/desktop-development/skills/electron-mock-factory

electron-mock-factory

Verified

Generate mocks for Electron APIs (ipcMain, ipcRenderer, dialog, etc.) for unit testing

FileKindSize
README.mdmarkdown470 B
SKILL.mdskill md2.2 KB
# electron-mock-factory

Generate mocks for Electron APIs for unit testing.

## Quick Start

```javascript
const result = await invokeSkill('electron-mock-factory', {
  projectPath: '/path/to/electron-app',
  testFramework: 'jest',
  modulesToMock: ['ipcMain', 'ipcRenderer', 'dialog', 'app']
});
```

## Features

- IPC mocks
- Dialog mocks
- BrowserWindow mocks
- Jest/Vitest support

## Related Skills

- `playwright-electron-config`
- `desktop-unit-testing` process
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall