MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / createPack

Function createPack

tests/zip.test.ts:20–31  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

18}
19
20function createPack(dir: string): void {
21 saveConfig(dir, {
22 name: "Zip Pack",
23 description: "Pack used for zip tests",
24 version: "1.0.0",
25 prompts: [],
26 skills: [],
27 });
28 fs.mkdirSync(path.join(dir, "skills"), { recursive: true });
29 fs.writeFileSync(path.join(dir, "start.sh"), "#!/bin/sh\n", "utf-8");
30 fs.writeFileSync(path.join(dir, "start.bat"), "@echo off\r\n", "utf-8");
31}
32
33test("zipCommand includes job.json when it exists", async () => {
34 await withTempDir(async (dir) => {

Callers 1

zip.test.tsFile · 0.85

Calls 1

saveConfigFunction · 0.85

Tested by

no test coverage detected