Skip to content

Latest commit

 

History

History

jest-runner

Jest Fuzz Runner

Custom Jest runner to executes fuzz tests via Jazzer.js, detailed documentation can be found at the Jazzer.js GitHub page.

A fuzz test in Jest, in this case written in TypeScript, would look similar to the following example:

// file: "Target.fuzz.ts
// Import the fuzz testing extension to compile TS code.
import "@jazzer.js/jest-runner";
import * as target from "./target";

describe("Target", () => {
	test.fuzz("executes a method", (data: Buffer) => {
		target.fuzzMe(data);
	});
});