Skip to content
Effect 4.0 is here. One ecosystem. Zero dependencies.

TestConfig

3 exports Since v2.0.0 Source

Other

Since v2.0.0

Signature

declare function make(params: {
readonly repeats: number;
readonly retries: number;
readonly samples: number;
readonly shrinks: number;
}): TestConfig

Signature

declare const TestConfig: Tag<TestConfig, TestConfig>

TestConfig

interface
Since v2.0.0

The TestConfig service provides access to default configuration settings used by tests, including the number of times to repeat tests to ensure they are stable, the number of times to retry flaky tests, the sufficient number of samples to check from a random variable, and the maximum number of shrinkings to minimize large failures.

Signature

interface TestConfig {
readonly repeats: number;
readonly retries: number;
readonly samples: number;
readonly shrinks: number;
}