Files
oh-my-opencode/src/config/schema/agent-names.test.ts
T
2026-05-30 20:38:59 +09:00

31 lines
776 B
TypeScript

import { describe, expect, test } from "bun:test"
import { OhMyOpenCodeConfigSchema } from "./oh-my-opencode-config"
describe("OhMyOpenCodeConfigSchema disabled_skills", () => {
test("accepts review-work, ai-slop-remover, and runtime security skills", () => {
// given
const config = {
disabled_skills: [
"review-work",
"ai-slop-remover",
"security-research",
"security-review",
],
}
// when
const result = OhMyOpenCodeConfigSchema.safeParse(config)
// then
expect(result.success).toBe(true)
if (result.success) {
expect(result.data.disabled_skills).toEqual([
"review-work",
"ai-slop-remover",
"security-research",
"security-review",
])
}
})
})