dexploarer/plugin-electrobun-dev/electrobun-testing
Claude Code and agent skill by dexploarer/plugin-electrobun-dev
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks to "write electrobun tests", "add electrobun test coverage", "electrobun testing", "defineTest pattern", generating new electrobun test suites, or reverse-engineering electrobun component behaviour from test source.
Install
npx vskill@latest install dexploarer/plugin-electrobun-dev/electrobun-testingSKILL.md
The same SKILL.md was published earlier as dexploarer/plugin-electrobun-dev/electrobun-testing.
Electrobun Testing
Tests for Electrobun APIs live in the Kitchen Sink app (kitchen/src/tests/).
Test Definition Pattern
All tests use defineTest() from the test framework:
defineTest() Fields
| Field | Type | Required | Description | |
|---|---|---|---|---|
id | string | ✅ | Stable slug (kebab-case, globally unique) | |
title | string | ✅ | Human-readable display name | |
category | string | ✅ | API grouping (e.g. "BrowserWindow", "Utils") | |
description | string | ✅ | One-sentence description | |
interactive | boolean | ✅ | true if requires human input | |
apiSurface | string[] | ✅ | Electrobun APIs exercised | |
run | async function | ✅ | Test body (see below) | |
playgroundRoute | string? | — | Playground HTML path if has UI | |
uiSelectors | string[] | — | CSS selectors used in playground | |
platformCaveats | string[] | — | e.g. ["macOS only"] |
Test Body API
Registering Test Suites
After writing a test file, add it to the aggregator:
Then regenerate the manifest:
Writing Automated Tests
Automated tests (interactive: false) run entirely in code — no human in the loop.
Pattern: Test a BrowserWindow method
Pattern: Test RPC round-trip
Pattern: Test Utils / system APIs
Pattern: Test navigation rules
Writing Interactive Tests
Interactive tests (interactive: true) open a playground window and walk the user through a verification flow.
Full API Surface Tested by Kitchen Sink
BrowserWindow
new BrowserWindow(options), getById(id), webview, setTitle, close, focus, show, minimize, unminimize, isMinimized, maximize, unmaximize, isMaximized, setFullScreen, isFullScreen, setAlwaysOnTop, isAlwaysOnTop, setVisibleOnAllWorkspaces, isVisibleOnAllWorkspaces, setPosition, setSize, setFrame, getFrame, getPosition, getSize, setPageZoom, getPageZoom, on('close'|'move'|'resize'|'blur'|'focus')
BrowserView
BrowserView.defineRPC(schema), new BrowserView(options), executeJavascript, loadURL, loadHTML, setNavigationRules, stopFindInPage, openDevTools, closeDevTools, toggleDevTools, setPageZoom, getPageZoom, remove, getById, getAll, on('will-navigate'|'did-navigate'|'dom-ready'), rpc.request.evaluateJavascriptWithResponse
Tray
new Tray(options), setTitle, setImage, setMenu, setVisible, getBounds, remove, on('tray-clicked'), getById, getAll, removeById
ApplicationMenu / ContextMenu
ApplicationMenu.setApplicationMenu(menu), ContextMenu.showContextMenu(menu), Electrobun.events.on('application-menu-clicked'), Electrobun.events.on('context-menu-clicked')
Utils
moveToTrash, showItemInFolder, openExternal, openPath, setDockIconVisible, isDockIconVisible, showNotification, quit, openFileDialog, showMessageBox, clipboardReadText, clipboardWriteText, clipboardReadImage, clipboardWriteImage, clipboardClear, clipboardAvailableFormats, paths.*
Session
Session.fromPartition(name), Session.defaultSession, session.cookies.set/get/remove/clear
Screen
Screen.getPrimaryDisplay(), Screen.getAllDisplays(), Screen.getCursorScreenPoint()
GlobalShortcut
GlobalShortcut.register(accelerator, handler), GlobalShortcut.unregister(accelerator), GlobalShortcut.unregisterAll()
Updater
Updater.getLocal, Updater.onStatusChange, Updater.checkForUpdate, Updater.downloadUpdate, Updater.updateInfo, Updater.applyUpdate, Updater.getStatusHistory, Updater.clearStatusHistory
Updater status values: checking, update-available, downloading, update-ready, no-update, error
View-side (electrobun/view)
Electroview.defineRPC(schema), new Electroview({ rpc }), electrobun.rpc.request.*, electrobun.rpc.send.*, evaluateJavascriptWithResponse({ script })
Platform Caveats to Document in Tests
Always add a platformCaveats array when a test is platform-specific:
Generating and Validating After Changes
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/electrobun-testing/SKILL.md
Popularity
- Repository stars
- 5
- Repository forks
- 1
- 7-day trend score
- 9
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dexploarer/plugin-electrobun-dev/electrobun-testing)