Skip to content
Source
Sign inSign up
Open History to see the last commit

CursorReplayFixtures.integration.test.ts

35 lines1.2 KB

1import { describe, it } from "@effect/vitest";
2​
3import { CursorOrchestratorReplayHarness } from "../Adapters/CursorAdapterV2.testkit.ts";
4import { messageRestartInput } from "./fixtures/message_steering/input.ts";
5import {
6 findReplayFixture,
7 itRunsReplayFixtures,
8 runReplayFixture,
9} from "./ProviderReplayFixtures.ts";
10​
11describe("Cursor replay fixtures", () => {
12 itRunsReplayFixtures("cursor", (input) =>
13 runReplayFixture({ ...input, harness: CursorOrchestratorReplayHarness }),
14 );
15​
16 const cursorSteeringProvider = findReplayFixture("message_steering")?.providers.find(
17 (provider) => provider.driver === "cursor",
18 );
19 if (cursorSteeringProvider !== undefined) {
20 it.effect("executes explicit Cursor restart_active through the recorded SDK boundary", () =>
21 runReplayFixture({
22 fixtureName: "message_steering",
23 buildInput: messageRestartInput,
24 driver: {
25 ...cursorSteeringProvider,
26 transcriptFile: new URL(
27 "./fixtures/message_steering/cursor_restart_transcript.ndjson",
28 import.meta.url,
29 ),
30 },
31 harness: CursorOrchestratorReplayHarness,
32 }),
33 );
34 }
35});