test: cover explicit main session database target

This commit is contained in:
Peter Steinberger
2026-05-18 06:11:12 +01:00
parent 9599bdb2a9
commit dbd2df7c48

View File

@@ -120,6 +120,12 @@ describe("resolveSessionDatabaseTargets", () => {
]);
});
it("accepts explicit main agent selection when config has no agent list", () => {
expect(resolveSessionDatabaseTargets({}, { agent: "main" })).toEqual([
expectedTarget({ agentId: "main", env: process.env }),
]);
});
it("includes SQLite-registered paths for explicit configured agent selection", async () => {
await withTempStateHome(async (home) => {
const env = createEnv(home);