testTestToolRunsSuitesAgainstAnotherBuild

tcmts.cli.mcp.testTestToolRunsSuitesAgainstAnotherBuild · #dkpkd334 · term

import { TOOLS } from "#codebase/tcmts/cli/mcp";
import assert from "node:assert/strict";

export const testTestToolRunsSuitesAgainstAnotherBuild = () => {
  const argv = TOOLS.find((t) => t.name === "tcm_test")!.argv!;
  assert.deepEqual(argv({ names: ["lib.e2e"], bin: { tcm: "/old/tcm.js" } }), [
    "test",
    "lib.e2e",
    "--bin",
    "tcm=/old/tcm.js",
  ]);
  assert.deepEqual(argv({ bin: {} }), ["test"]);
}

uses