Skip to content

Releases: tommy-mitchell/test-quadruple

v0.3.0

17 Aug 22:33
Compare
Choose a tag to compare

Fixes a type issue where tq.mock was too restrictive, and bumps the minimum supported Node.js version to v18.19 to support auto-registering loaders.


  • fix!: bump minimum version to Node.js 18.19 6ebec9f
  • chore: update dev deps, tweaks 32ba2b2
  • fix(mock): loosen type restrictions 087bea1

v0.2.0...v0.3.0

v0.2.0

25 Jul 14:31
Compare
Choose a tag to compare

Adds a flatCalls detail to tq.explain() that is the flattened arguments of all calls to a given spy:

import test from "ava";
import * as tq from "test-quadruple";

test("explain", t => {
  const fn = tq.spy();

  fn(1, 2);
  fn(3, 4);

  t.like(tq.explain(fn), {
    callCount: 2,
    called: true,
    calls: [
      { arguments: [1, 2] },
      { arguments: [3, 4] },
    ],
    flatCalls: [1, 2, 3, 4],
  });
});

  • feat(explain): add flatCalls detail 9a272a1
  • chore(tsd): test against compiled types 9e2873e
  • docs: add another related package c243fe1
  • chore: add Node.js 22 to CI matrix ab52f29

v0.1.0...v0.2.0

v0.1.0

19 Jul 06:10
Compare
Choose a tag to compare

Initial release.