test(config): batch 14 (3 files)
This commit is contained in:
@@ -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",
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -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,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",
|
||||||
|
|||||||
Reference in New Issue
Block a user