Skip to content

@gtkx/testing / configure

Function: configure()

configure(newConfig): void

Defined in: config.ts:76

Configures the testing library behavior.

Accepts either a partial configuration object or a function that receives the current configuration and returns updates.

Parameters

ParameterTypeDescription
newConfigPartial<Config> | ((current) => Partial<Config>)Partial configuration or updater function

Returns

void

Example

tsx
import { configure } from "@gtkx/testing";

// Disable role suggestions
configure({ showSuggestions: false });

// Use updater function
configure((current) => ({
  showSuggestions: !current.showSuggestions,
}));