Skip to main content

Interface: CommandsContraints

Defined in: packages/fast-check/src/check/model/commands/CommandsContraints.ts:8

Parameters for commands

Remarks

Since 2.2.0

Properties

disableReplayLog?

optional disableReplayLog?: boolean

Defined in: packages/fast-check/src/check/model/commands/CommandsContraints.ts:28

Do not show replayPath in the output

Default Value

false

Remarks

Since 1.11.0


maxCommands?

optional maxCommands?: number

Defined in: packages/fast-check/src/check/model/commands/CommandsContraints.ts:17

Maximal number of commands to generate per run

You probably want to use size instead.

Default Value

0x7fffffff — defaulting seen as "max non specified" when defaultSizeToMaxWhenMaxSpecified=true

Remarks

Since 1.11.0


replayPath?

optional replayPath?: string

Defined in: packages/fast-check/src/check/model/commands/CommandsContraints.ts:36

Hint for replay purposes only

Should be used in conjonction with { seed, path } of assert

Remarks

Since 1.11.0


size?

optional size?: SizeForArbitrary

Defined in: packages/fast-check/src/check/model/commands/CommandsContraints.ts:22

Define how large the generated values (number of commands) should be (at max)

Remarks

Since 2.22.0