refactor: remove unused test utilities · openclaw/openclaw@9e46fe1
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -import { vi } from "vitest"; |
2 | 1 | import type * as SessionWriteLockModule from "../agents/session-write-lock.js"; |
3 | 2 | |
4 | 3 | type SessionWriteLockModuleShape = typeof SessionWriteLockModule; |
@@ -13,16 +12,3 @@ export async function buildSessionWriteLockModuleMock(
|
13 | 12 | acquireSessionWriteLock, |
14 | 13 | }; |
15 | 14 | } |
16 | | - |
17 | | -export function resetModulesWithSessionWriteLockDoMock( |
18 | | -modulePath: string, |
19 | | -acquireSessionWriteLock: SessionWriteLockModuleShape["acquireSessionWriteLock"], |
20 | | -): void { |
21 | | -vi.resetModules(); |
22 | | -vi.doMock(modulePath, () => |
23 | | -buildSessionWriteLockModuleMock( |
24 | | -() => vi.importActual<SessionWriteLockModuleShape>(modulePath), |
25 | | -acquireSessionWriteLock, |
26 | | -), |
27 | | -); |
28 | | -} |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。