Skip to content

TestConfig

3 exports Added in v2.0.0 Source

Other

make

Added in v2.0.0 Source

Signature

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

TestConfig

Added in v2.0.0 Source

Signature

declare const TestConfig: Tag<TestConfig, TestConfig>;

TestConfig interface

Added in v2.0.0 Source

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;
}