test(config): batch 14 (3 files)

This commit is contained in:
YeonGyu-Kim
2026-05-30 19:12:03 +09:00
parent fc4103bd4f
commit 9d98f47733
3 changed files with 8 additions and 5 deletions
+6 -3
View File
@@ -1,11 +1,13 @@
/// <reference path="../../../bun-test.d.ts" />
import { describe, expect, test } from "bun:test" import { describe, expect, test } from "bun:test"
import { OhMyOpenCodeConfigSchema } from "./oh-my-opencode-config" import { OhMyOpenCodeConfigSchema } from "./oh-my-opencode-config"
describe("OhMyOpenCodeConfigSchema disabled_skills", () => { describe("OhMyOpenCodeConfigSchema disabled_skills", () => {
test("accepts review-work and ai-slop-remover", () => { test("accepts review-work, remove-ai-slops, and init-deep", () => {
// given // given
const config = { const config = {
disabled_skills: ["review-work", "ai-slop-remover"], disabled_skills: ["review-work", "remove-ai-slops", "init-deep"],
} }
// when // when
@@ -16,7 +18,8 @@ describe("OhMyOpenCodeConfigSchema disabled_skills", () => {
if (result.success) { if (result.success) {
expect(result.data.disabled_skills).toEqual([ expect(result.data.disabled_skills).toEqual([
"review-work", "review-work",
"ai-slop-remover", "remove-ai-slops",
"init-deep",
]) ])
} }
}) })
+2 -1
View File
@@ -21,7 +21,8 @@ export const BuiltinSkillNameSchema = z.enum([
"frontend-ui-ux", "frontend-ui-ux",
"git-master", "git-master",
"review-work", "review-work",
"ai-slop-remover", "remove-ai-slops",
"init-deep",
"team-mode", "team-mode",
]) ])
-1
View File
@@ -1,7 +1,6 @@
import { z } from "zod" import { z } from "zod"
export const BuiltinCommandNameSchema = z.enum([ export const BuiltinCommandNameSchema = z.enum([
"init-deep",
"ralph-loop", "ralph-loop",
"ulw-loop", "ulw-loop",
"cancel-ralph", "cancel-ralph",