tcmBin

tcmts.cli.test.e2e.harness.tcmBin · #2lfjj6wl · term · runs on the server

uses node:path

The tcm under test: tcm test sets TCM_BIN to the codebase's own build.

import path from "node:path";

export function tcmBin(): string {
  const bin = process.env.TCM_BIN;
  if (!bin) throw new Error("TCM_BIN isn't set: it names the tcm these tests run");
  return path.resolve(bin);
}

used by