startServer

tcmts.cli.test.e2e.sync.startServer · #jkd3jed2 · term · runs anywhere

Start tcm serve on a free port; resolves to its base URL (and certificate fingerprint with --tls).

import type { Keep } from "#codebase/tcmts/cli/test/e2e/contributions";
import { startServerInfo } from "#codebase/tcmts/cli/test/e2e/sync";

export function startServer(keep: Keep, dir: string, token: string, ...extra: string[]): Promise<string> {
  return startServerInfo(keep, dir, token, ...extra).then((i) => i.url);
}

uses

used by