mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-24 14:43:37 -04:00
9 lines
406 B
TypeScript
9 lines
406 B
TypeScript
import { expect, test } from "bun:test"
|
|
import { SessionSystemPrompt } from "@opencode-ai/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")
|
|
})
|