add tests for CLI

This commit is contained in:
Ruben Fiszel
2025-12-26 20:32:42 +00:00
parent bb24315613
commit 2e577fc847
9 changed files with 1515 additions and 4 deletions

View File

@@ -0,0 +1,6 @@
/**
* Shared constants used across the CLI.
* This file should have minimal imports to avoid circular dependencies.
*/
export const WM_FORK_PREFIX = "wm-fork";

View File

@@ -20,7 +20,7 @@ import {
getWorkspaceIdForWorkspaceForkFromBranchName,
isGitRepository,
} from "../utils/git.ts";
import { WM_FORK_PREFIX } from "../main.ts";
import { WM_FORK_PREFIX } from "./constants.ts";
// Helper function to select from multiple matching profiles
async function selectFromMultipleProfiles(