chore: 添加 .oxfmtrc.json 并格式化全部代码
This commit is contained in:
@@ -91,10 +91,7 @@ describe("loadConfig", () => {
|
||||
it("YAML 解析错误时返回默认配置", async () => {
|
||||
const runeDir = join(TMP_DIR, ".rune");
|
||||
await mkdir(runeDir, { recursive: true });
|
||||
await writeFile(
|
||||
join(runeDir, "config.yaml"),
|
||||
`stages: [invalid yaml {{{`,
|
||||
);
|
||||
await writeFile(join(runeDir, "config.yaml"), `stages: [invalid yaml {{{`);
|
||||
const config = await loadConfig(TMP_DIR);
|
||||
expect(config.stages.discuss).toBeDefined();
|
||||
});
|
||||
@@ -125,9 +122,7 @@ describe("validateConfig", () => {
|
||||
const config: RuneConfig = {
|
||||
stages: {
|
||||
plan: {
|
||||
documents: [
|
||||
{ name: "task", prompt: "生成任务", depend: ["nonexistent"] },
|
||||
],
|
||||
documents: [{ name: "task", prompt: "生成任务", depend: ["nonexistent"] }],
|
||||
},
|
||||
},
|
||||
};
|
||||
@@ -138,9 +133,7 @@ describe("validateConfig", () => {
|
||||
const config: RuneConfig = {
|
||||
stages: {
|
||||
plan: {
|
||||
documents: [
|
||||
{ name: "design", prompt: "生成设计", depend: ["design"] },
|
||||
],
|
||||
documents: [{ name: "design", prompt: "生成设计", depend: ["design"] }],
|
||||
},
|
||||
},
|
||||
};
|
||||
@@ -170,9 +163,7 @@ describe("validateConfig", () => {
|
||||
const config: RuneConfig = {
|
||||
stages: {
|
||||
plan: {
|
||||
documents: [
|
||||
{ name: "design", prompt: "生成设计", depend: [] },
|
||||
],
|
||||
documents: [{ name: "design", prompt: "生成设计", depend: [] }],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user