Skip to content

API Reference / @gtkx/vitest / default

Variable: default

const default: (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?

GtkxPluginOptions

Headless display settings (size, compositor) forwarded to each worker.

Returns

Plugin

A Vitest config plugin.

Released under the MPL-2.0 License.