API Reference / @gtkx/vitest / default
Variable: default
constdefault: (options?) =>Plugin
Defined in: index.d.ts:18
Vitest plugin that runs each test worker against its own isolated headless Wayland display. It configures the forks pool, injects the worker preload and setup files, and sets the environment needed for headless GTK4 rendering.
Parameters
options?
Headless display settings (size, compositor) forwarded to each worker.
Returns
Plugin
A Vitest config plugin.