Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create "fuzz" helper for kitimat-jest #2

Open
garbles opened this issue Mar 20, 2018 · 0 comments
Open

Create "fuzz" helper for kitimat-jest #2

garbles opened this issue Mar 20, 2018 · 0 comments

Comments

@garbles
Copy link
Owner

garbles commented Mar 20, 2018

This function would be the "snapshot testing" of property-based tests - don't want to use much effort and just have something that does a general sanity check that the function won't throw.

import { integer } from 'kitimat-jest';

fuzz('my func doesn\'t throw', [integer()], int => myFunc(int));

Maybe this should also try to throw garbage and see that there is an exception if the wrong type is passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant