mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 20:30:23 +00:00
test(auto-reply): use lightweight clears in agent runner setup
This commit is contained in:
@@ -75,10 +75,10 @@ type RunWithModelFallbackParams = {
|
||||
};
|
||||
|
||||
beforeEach(() => {
|
||||
runEmbeddedPiAgentMock.mockReset();
|
||||
runCliAgentMock.mockReset();
|
||||
runWithModelFallbackMock.mockReset();
|
||||
runtimeErrorMock.mockReset();
|
||||
runEmbeddedPiAgentMock.mockClear();
|
||||
runCliAgentMock.mockClear();
|
||||
runWithModelFallbackMock.mockClear();
|
||||
runtimeErrorMock.mockClear();
|
||||
|
||||
// Default: no provider switch; execute the chosen provider+model.
|
||||
runWithModelFallbackMock.mockImplementation(
|
||||
|
||||
Reference in New Issue
Block a user