Attempts to find a counterexample for a set of Laws.
Meant to be called from inside a vitest test suite, perhaps inside some describe() block, but not inside a test() or it() block.
vitest
describe()
test()
it()
Test results will be shown grouped under the given LawSet.name. Laws found in the sets field will be shown under their own names as children.
LawSet.name
sets
Entries in the optional configuration will override any fast-check parameters found in the laws.
fast-check
Laws to test.
Optional runtime fast-check parameters.
Attempts to find a counterexample for a set of Laws.
Meant to be called from inside a
vitest
test suite, perhaps inside somedescribe()
block, but not inside atest()
orit()
block.Test results will be shown grouped under the given
LawSet.name
. Laws found in thesets
field will be shown under their own names as children.Entries in the optional configuration will override any
fast-check
parameters found in the laws.