plainEnv

tcmts.cli.test.e2e.harness.plainEnv · #c4rnws4r · term · runs on the server

uses process

The environment tcm runs in here: no colours, so its output reads as text.

export const plainEnv = (): NodeJS.ProcessEnv => {
  // (a test's tcm works on the test's own directories, whatever codebase runs it)
  const {
    TCM_CODEBASE: _,
    TCM_BRIEF: __,
    TCM_BRANCH: ___,
    TCM_COMMANDS: ____,
    ...env
  } = process.env;
  return { ...env, NO_COLOR: "1", FORCE_COLOR: "0" };
}

used by