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

    Function infiniteStream

    • Produce an infinite stream of values

      WARNING: By default, infiniteStream remembers all values it has ever generated. This causes unbounded memory growth during large tests. Set noHistory to disable.

      WARNING: Requires Object.assign

      Type Parameters

      • T

      Parameters

      • arb: Arbitrary<T>

        Arbitrary used to generate the values

      • Optionalconstraints: InfiniteStreamConstraints

        Constraints to apply when building instances (since 4.3.0)

      Returns Arbitrary<Stream<T>>

      Since 1.8.0