test(hooks): replace global module and timer overrides

This commit is contained in:
YeonGyu-Kim
2026-05-30 23:50:57 +09:00
parent 4a15dfe971
commit 1b9e667486
7 changed files with 80 additions and 68 deletions
+4 -4
View File
@@ -1,13 +1,13 @@
import { runTmuxCommand } from "../shared/tmux/runner"
import { getTmuxPath } from "../tools/interactive-bash/tmux-path-resolver"
import * as tmuxRunner from "../shared/tmux/runner"
import * as tmuxPathResolver from "../tools/interactive-bash/tmux-path-resolver"
async function runOpenClawTmuxCommand(args: string[]) {
const tmuxPath = await getTmuxPath()
const tmuxPath = await tmuxPathResolver.getTmuxPath()
if (!tmuxPath) {
return null
}
return runTmuxCommand(tmuxPath, args)
return tmuxRunner.runTmuxCommand(tmuxPath, args)
}
export function getCurrentTmuxSession(): string | null {