(files: Record<string, string>)
| 5 | |
| 6 | // 辅助函数:创建测试用 ZIP ArrayBuffer |
| 7 | async function createTestZip(files: Record<string, string>): Promise<ArrayBuffer> { |
| 8 | const zip = createJSZip(); |
| 9 | for (const [path, content] of Object.entries(files)) { |
| 10 | zip.file(path, content); |
| 11 | } |
| 12 | return zip.generateAsync({ type: "arraybuffer" }); |
| 13 | } |
| 14 | |
| 15 | describe("parseSkillMd", () => { |
| 16 | it("应正确解析完整的 SKILL.md", () => { |
no test coverage detected