1.0.0 • Published 5 years ago

the-fuzz v1.0.0

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
5 years ago

The Fuzz

A tidy wrapper for fast-check

We add ES6 importing:

// These all work:
const fuzz = require('the-fuzz');
const { fuzz } = require('the-fuzz');
import fuzz from 'the-fuzz';
import { fuzz } from 'the-fuzz';

Seeds set on the CLI are available when using fuzz instead of fc.assert:

node ./myProgram --seed=23456789

To not use the CLI seed, either override it:

fuzz(/* Your Fuzzing */, { seed: 12 })

Or use the original assert:

fuzz.assert(/* Your Fuzzing */);

All fc properties available on the fuzz object:

fuzz.property
fuzz.string
fuzz.assert
...
1.0.0

5 years ago