Function: infiniteStream()
Defined in: packages/fast-check/src/arbitrary/infiniteStream.ts:35
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
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
arb | Arbitrary<T> | Arbitrary used to generate the values |
constraints? | InfiniteStreamConstraints | Constraints to apply when building instances (since 4.3.0) |
Returns
Remarks
Since 1.8.0