MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / readFixture

Function readFixture

e2e/scenarios/custom-tools.test.ts:60–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 ]);
59
60const readFixture = async () => {
61 const dir = join(import.meta.dirname, "..", "fixtures", "custom-tools-git");
62 const [shas, pack1, pack2, pack3] = await Promise.all([
63 readFile(join(dir, "custom-tools-shas.txt"), "utf8"),
64 readFile(join(dir, "custom-tools-v1.pack")),
65 readFile(join(dir, "custom-tools-v2.pack")),
66 readFile(join(dir, "custom-tools-v3.pack")),
67 ]);
68 const [sha1, sha2, sha3] = shas.trim().split("\n");
69 return { sha1: sha1!, sha2: sha2!, sha3: sha3!, pack1, pack2, pack3 };
70};
71
72const fixtureGitServer = Effect.acquireRelease(
73 Effect.promise(async () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected