A test double library for beater.
$ npm install --save-dev beater-double
import assert from 'assert';
import { spyFn } from 'beater-double';
const f = spyFn((...ns: number[]) => JSON.stringify(ns));
assert.deepStrictEqual(f(123), '[123]');
assert.deepStrictEqual(f(456, 789), '[456,789]');
assert.deepStrictEqual(f.calls, [[123], [456, 789]]);