Skip to main content

Function: pre()

pre(expectTruthy): asserts expectTruthy

Defined in: packages/fast-check/src/check/precondition/Pre.ts:9

Add pre-condition checks inside a property execution

Parameters

ParameterTypeDescription
expectTruthybooleancancel the run whenever this value is falsy

Returns

asserts expectTruthy

Remarks

Since 1.3.0