Skip to content

Commit 138a477

Browse files
LiuwqGitcursoragent
andcommitted
fix(test): type memory-core doctor migration params as OpenClawConfig
Unblocks check:test-types after rebasing onto latest main. Co-authored-by: Cursor <[email protected]>
1 parent 3a959ba commit 138a477

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

extensions/memory-core/doctor-contract-api.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
resetMemoryCoreDreamingStateForTests,
2020
} from "./src/dreaming-state.js";
2121
import { testing as shortTermTesting } from "./src/short-term-promotion.js";
22+
import { asOpenClawConfig } from "./src/tools.test-helpers.js";
2223

2324
function createDoctorContext(env: NodeJS.ProcessEnv): PluginDoctorStateMigrationContext {
2425
return {
@@ -243,7 +244,7 @@ describe("memory-core doctor dreaming migration", () => {
243244
}),
244245
"utf8",
245246
);
246-
const config = { agents: { list: [{ id: "main", default: true }] } };
247+
const config = asOpenClawConfig({ agents: { list: [{ id: "main", default: true }] } });
247248

248249
const preview = await stateMigrations[0].detectLegacyState(migrationParams(config));
249250
expect(preview?.preview).toEqual([expect.stringContaining("Memory Core short-term recall")]);

0 commit comments

Comments
 (0)