API Reference / @gtkx/cli / @gtkx/cli/vitest-plugin / default
Function: default()
default(
options?):Plugin<any>[]
Defined in: packages/cli/src/vitest-plugin.ts:31
Vite plugin stack for testing a GTKX application: the generated bindings the tests import, the dependencies built against @gtkx/react, the plugins the app is built with, the project's compiled GSettings schemas and its configured application icon exposed to every test worker, a headless display per worker, and ?url imports in the Node workers that tests start.
A package that is not an application, such as a component library, needs no gtkx.config.ts: without one, or without an applicationId in it, the tests run as the application org.gtkx.Test.
Parameters
options?
PluginOptions = {}
Returns
Plugin<any>[]
The plugins to spread into a Vitest config.