test: check sanitized bootstrap files · openclaw/openclaw@a6892a5
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -118,9 +118,15 @@ describe("resolveBootstrapFilesForRun", () => {
|
118 | 118 | warn: (message) => warnings.push(message), |
119 | 119 | }); |
120 | 120 | |
121 | | -expect( |
122 | | -files.every((file) => typeof file.path === "string" && file.path.trim().length > 0), |
123 | | -).toBe(true); |
| 121 | +expect(files.map((file) => path.relative(workspaceDir, file.path))).toEqual([ |
| 122 | +"AGENTS.md", |
| 123 | +"SOUL.md", |
| 124 | +"TOOLS.md", |
| 125 | +"IDENTITY.md", |
| 126 | +"USER.md", |
| 127 | +"HEARTBEAT.md", |
| 128 | +"BOOTSTRAP.md", |
| 129 | +]); |
124 | 130 | expect(warnings).toHaveLength(3); |
125 | 131 | expect(warnings[0]).toContain('missing or invalid "path" field'); |
126 | 132 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。