API Reference | fast-check | Property based testing framework
    Preparing search index...

    Interface IProperty<Ts>

    Interface for synchronous property, see IRawProperty

    Since 1.19.0

    interface IProperty<Ts> {
        runAfterEach: () => void;
        runBeforeEach: () => void;
        generate(mrng: Random, runId?: number): Value<Ts>;
        isAsync(): false;
        run(v: Ts): null | PreconditionFailure | PropertyFailure;
        shrink(value: Value<Ts>): Stream<Value<Ts>>;
    }

    Type Parameters

    • Ts

    Hierarchy (View Summary)

    Index

    Properties

    runAfterEach: () => void

    Run after each hook

    Since 3.4.0

    runBeforeEach: () => void

    Run before each hook

    Since 3.4.0

    Methods