Skip to main content

@rbxts/expect > getDefaultExpectConfig

getDefaultExpectConfig() function

Gets the (current) default ExpectConfig.

Signature:

declare function getDefaultExpectConfig(): ExpectConfig;

Returns:

ExpectConfig

Remarks

Will use the baseline settings if the user hasn't called setDefaultExpectConfig().

Instead of saving a reference to the config, consumers are expected to call this whenever they need the config.

The returned config is a deep copy, so you can safely mutate it without impacting others.