Skip to content

Commit e43992f

Browse files
committed
test: use GoalSnapshot type for prompt fixture
1 parent 8d99a2e commit e43992f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎test/prompts-i18n.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { expect, test } from "bun:test"
22
import { continuationPrompt, limitPrompt, systemReminder } from "../src/prompts"
3+
import type { GoalSnapshot } from "../src/state"
34

45
const promptGoal = {
56
objective: "完成国际化支持",
@@ -12,7 +13,7 @@ const promptGoal = {
1213
maxAutoTurns: 25,
1314
maxDurationSeconds: 1800,
1415
stopReason: null,
15-
} as never
16+
} as GoalSnapshot
1617

1718
test("zh-CN continuation prompt keeps goal protocol identifiers and requests Chinese replies", () => {
1819
const prompt = continuationPrompt(promptGoal, "zh-CN")

0 commit comments

Comments
 (0)