testsIn

tcmts.cli.sync.testsIn · #db5v7ptb · term · runs anywhere

The tests among a branch's names, by hash.

import { isTestPath } from "#codebase/tcmts/cli/testing";
import type { NameRow } from "#codebase/tcmts/store";

export const testsIn = (names: NameRow[]): string[] => [
  ...new Set(
    names
      .filter((n) => n.kind !== "type" && n.kind !== "file" && isTestPath(n.path))
      .map((n) => n.hash),
  ),
]

uses

used by