Skip to content

Commit d68b975

Browse files
committed
docs: document gateway session tests
1 parent 2770776 commit d68b975

16 files changed

Lines changed: 48 additions & 0 deletions

src/gateway/server.sessions.compaction.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* Gateway session compaction RPC tests.
3+
*/
14
import fs from "node:fs/promises";
25
import os from "node:os";
36
import path from "node:path";

src/gateway/server.sessions.list-changed.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* Gateway sessions.list changed-state tests.
3+
*/
14
import fs from "node:fs/promises";
25
import path from "node:path";
36
import { expect, test, vi } from "vitest";

src/gateway/server.sessions.preview-resolve.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* Gateway session preview resolve tests.
3+
*/
14
import fs from "node:fs/promises";
25
import path from "node:path";
36
import { expect, test } from "vitest";

src/gateway/server.sessions.reset-models.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* Gateway session reset model-selection tests.
3+
*/
14
import fs from "node:fs/promises";
25
import path from "node:path";
36
import { expect, test } from "vitest";

src/gateway/server.sessions.store-rpc.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* Gateway session store RPC tests.
3+
*/
14
import fs from "node:fs/promises";
25
import path from "node:path";
36
import { expect, test, vi } from "vitest";

src/gateway/session-archive.imports.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* Session archive import-boundary tests.
3+
*/
14
import { importFreshModule } from "openclaw/plugin-sdk/test-fixtures";
25
import { beforeAll, describe, expect, it, vi } from "vitest";
36

src/gateway/session-child-sessions.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* Child-session aggregation tests.
3+
*/
14
import { expect, test, vi } from "vitest";
25
import { loadCombinedSessionStoreForGateway } from "../config/sessions/combined-store-gateway.js";
36
import type { SessionEntry } from "../config/sessions/types.js";

src/gateway/session-compaction-checkpoints.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* Session compaction checkpoint persistence tests.
3+
*/
14
import fsSync from "node:fs";
25
import fs from "node:fs/promises";
36
import os from "node:os";

src/gateway/session-history-state.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* Session history state hashing and metadata tests.
3+
*/
14
import { createHash } from "node:crypto";
25
import { describe, expect, test, vi } from "vitest";
36
import { HEARTBEAT_PROMPT } from "../auto-reply/heartbeat.js";

src/gateway/session-lifecycle-state.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* Session lifecycle state derivation tests.
3+
*/
14
import { describe, expect, it } from "vitest";
25
import {
36
deriveGatewaySessionLifecycleSnapshot,

0 commit comments

Comments
 (0)