Skip to content

Commit 29f5e9d

Browse files
committed
docs: document test helpers
1 parent 2521116 commit 29f5e9d

45 files changed

Lines changed: 45 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎test/fixtures/ts-topology/basic/extensions/alpha/src/use.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// TS topology alpha extension fixture imports SDK members with aliases.
12
import { aliasedThing as renamedThing, sharedThing, singleOwnerHelper } from "fixture-sdk";
23
import type { SharedType } from "fixture-sdk";
34
import * as extra from "fixture-sdk/extra";

‎test/fixtures/ts-topology/basic/extensions/beta/src/use.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// TS topology beta extension fixture imports shared SDK members.
12
import { sharedThing } from "fixture-sdk";
23
import type { SharedType } from "fixture-sdk";
34

‎test/fixtures/ts-topology/basic/src/internal/use.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// TS topology internal fixture imports shared SDK members from internal code.
12
import { sharedThing } from "fixture-sdk";
23

34
export function internalUse() {

‎test/fixtures/ts-topology/basic/src/lib/shared.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// TS topology shared fixture helper models a shared library export.
12
export function sharedThing() {
23
return "shared";
34
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
// TS topology public extra fixture re-exports shared SDK helpers.
12
export { sharedThing } from "../lib/shared.js";

‎test/fixtures/ts-topology/basic/src/public/index.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// TS topology public fixture barrel re-exports public SDK members.
12
export {
23
aliasedThing,
34
sharedThing,

‎test/fixtures/ts-topology/basic/tests/public.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// TS topology public fixture test exercises public fixture SDK exports.
12
import { testOnlyThing } from "fixture-sdk";
23

34
export function testUse() {

‎test/helpers/acp-manager-task-state.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ACP manager task state helper resets task flow state for ACP tests.
12
import { resetTaskFlowRegistryForTests } from "../../src/tasks/task-flow-registry.js";
23
import { configureTaskFlowRegistryRuntime } from "../../src/tasks/task-flow-registry.store.js";
34
import { findTaskByRunId, resetTaskRegistryForTests } from "../../src/tasks/task-registry.js";

‎test/helpers/agents/happy-path-prompt-snapshots.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Happy path prompt snapshot helper reads expected prompt snapshot files.
12
import fs from "node:fs";
23
import path from "node:path";
34
import type { Model } from "openclaw/plugin-sdk/llm";

‎test/helpers/agents/llm-stream-simple-mock.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Simple LLM stream mock helper builds deterministic streamed responses.
12
import { vi } from "vitest";
23

34
type LlmMockModule = Record<string, unknown>;

0 commit comments

Comments
 (0)