@ericcornelissen/arbitrary-javascript
v0.2.4
Published
Generate arbitrary JavaScript source code for/with fast-check
Readme
arbitrary-javascript
Generate arbitrary JavaScript source code for/with fast-check.
Install
npm install @ericcornelissen/arbitrary-javascriptUsage
import { test } from "node:test";
import * as fc from "fast-check";
import { javascript } from "@ericcornelissen/arbitrary-javascript";
test("example", () => {
fc.assert(
fc.property(javascript(), (program) => {
console.log(program);
assert.equal(typeof program, "string");
}),
);
});License
The source code is licensed under the Apache-2.0 license, see LICENSE for
the full license text.
