Something went wrong. Try again.
[[MIRROR from GitHub]] Property based testing framework for JavaScript (like QuickCheck) written in TypeScript fast-check.dev
Something went wrong. Try again.
279 B · 6 lines
at main
1234567const { pathToFileURL } = require('node:url');const { constant } = require('fast-check');const { propertyFor, assert } = require('@fast-check/worker');
const property = propertyFor(pathToFileURL(__filename));assert(property(constant(null), (data) => Object.is(data, null)));