Skip to content

API Reference / @gtkx/vitest / default

Variable: default ​

const default: (options?) => Plugin

Defined in: index.d.ts:16

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? ​

PluginOptions

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

Returns ​

Plugin

A Vitest config plugin.