BettererFileTest.constraint()
API > @betterer/betterer > BettererFileTest > constraint
Override the constraint in the test configuration.
Signature
constraint(constraintOverride: BettererTestConstraint<BettererFileTestResult>): this;
Parameters
Parameter | Type | Description |
---|---|---|
constraintOverride | BettererTestConstraint<BettererFileTestResult> | The new constraint for the test. |
Returns
this
This BettererFileTest
, so it is chainable.