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