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

    Interface IAsyncProperty<Ts>

    Interface for asynchronous property, see IRawProperty

    Since 1.19.0

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

    Type Parameters

    • Ts

    Hierarchy (View Summary)

    Index

    Properties

    runAfterEach: () => Promise<void>

    Run after each hook

    Since 3.4.0

    runBeforeEach: () => Promise<void>

    Run before each hook

    Since 3.4.0

    Methods