mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-09 22:25:02 +03:00
9 lines
403 B
TypeScript
9 lines
403 B
TypeScript
import { expect, test } from "bun:test"
|
|
import { SessionSystemPrompt } from "@opencode/core/session/system-prompt"
|
|
|
|
test("renders the default system prompt instructions", () => {
|
|
const prompt = SessionSystemPrompt.make(["edit", "read", "shell"])
|
|
expect(prompt).not.toContain("${OPENCODE_TOOL_GUIDANCE}")
|
|
expect(prompt).toContain("Use the edit tool for targeted changes to existing text files")
|
|
})
|