Documentation
¶
Overview ¶
Package workbench turns component examples ("stories") into headless smoke tests — the stories-as-tests half of the gwc workbench (FB5). A Story is a named example that renders a component; RunStories mounts each through the real reconciler into a mock DOM and reports any panic or render failure, so a component gallery doubles as a browserless test suite that runs under plain `go test`. The visual workbench gallery is a separate GUI consumer of the same Story list.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunStories ¶
RunStories renders every story through the native runtime into a mock DOM, reporting (via Errorf, so the run continues) any story that panics, renders a nil node, or fails to mount. It is the documented headless default: no browser, no harness, just `go test`.
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package fixtures ships first-class workbench stories for the framework's boundary components — async/suspense, error, and hydration boundaries — the stated reason for the workbench (FB5/D1).
|
Package fixtures ships first-class workbench stories for the framework's boundary components — async/suspense, error, and hydration boundaries — the stated reason for the workbench (FB5/D1). |
|
Package gallery renders a component workbench as a GoWebComponents component — the visual half of gwc workbench (FB5).
|
Package gallery renders a component workbench as a GoWebComponents component — the visual half of gwc workbench (FB5). |