Function: configure()
configure(
newConfig):void
Defined in: config.ts:69
Configures the testing library behavior.
Accepts either a partial configuration object or a function that receives the current configuration and returns updates.
Parameters
| Parameter | Type | Description |
|---|---|---|
newConfig | Partial<Config> | (current) => Partial<Config> | Partial configuration or updater function |
Returns
void
Example
import { configure } from "@gtkx/testing";
// Disable role suggestions
configure({ showSuggestions: false });
// Use updater function
configure((current) => ({
showSuggestions: !current.showSuggestions,
}));