electrobun-testing

Solid

Use when writing Electrobun tests, adding test coverage to the Kitchen Sink, implementing the defineTest() pattern, generating new test suites, understanding what the kitchen sink tests, or reverse-engineering component behaviour from test source. Activates on test authoring, test framework, or test-driven development questions.

Testing & QA 394 stars 68 forks Updated today MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
86
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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: ```typescript // kitchen/src/tests/window.test.ts import { defineTest } from "../test-framework/defineTest"; export const windowTests = [ defineTest({ id: "window-creation-with-url", // stable slug — must be unique title: "Window creation with URL", category: "BrowserWindow", description: "Verifies BrowserWindow can be created with a URL", interactive: false, // automated: no human needed apiSurface: ["BrowserWindow"], // APIs exercised (for manifest) async run({ assert, log }) { const win = new BrowserWindow({ title: "Test Window", url: "views://test-harness/index.html", hidden: true, rpc: testRpc, }); log("Window created, id:", win.id); assert(win.id > 0, "Window should have valid id"); await win.close(); }, }), ]; ``` ### 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[] | ✅ | Electr...

Details

Author
milady-ai
Repository
milady-ai/milady
Created
3 months ago
Last Updated
today
Language
HTML
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category