resultKey

tcmts.cli.vitest.resultKey · #22vyhrrj · term · runs on the server

uses process

The key test results are cached under: the runtime and the test framework that produced them.

import type { Codebase } from "#codebase/tcmts/cli/codebase";
import { toolRange } from "#codebase/tcmts/cli/lint";

export function resultKey(cb: Codebase): string {
  const range = toolRange(cb, "vitest");
  const vitest = range && cb.store.lockedVersion("vitest", range);
  return `${process.version}${vitest ? ` vitest@${vitest}` : ""}`;
}

uses

used by