The configuration object for the equalsTolerance function.

interface EqualsToleranceConfig {
    mode: MeanMode;
    verbose: boolean | "onlyOnFail";
}

Properties

Properties

mode: MeanMode

The mode/mean method to use. See MeanMode

verbose: boolean | "onlyOnFail"

Whether to log the values (a, b, tolerance, config, diff, result) to the console.

  • true - Log the values to the console.
  • false - Do not log the values to the console.
  • "onlyOnFail" - Only log the values to the console if the result is false.