MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / directFetch

Function directFetch

packages/cli/src/utils/publishProject.test.ts:511–528  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

509 it("sends is_public in the direct multipart form only when public is requested", async () => {
510 const dir = makeProjectDir();
511 const directFetch = () =>
512 vi
513 .fn()
514 .mockResolvedValueOnce(new Response("not found", { status: 404 }))
515 .mockResolvedValueOnce(
516 new Response(
517 JSON.stringify({
518 data: {
519 project_id: "hfp_123",
520 title: "demo",
521 file_count: 1,
522 url: "https://hyperframes.dev/p/hfp_123",
523 claim_token: "claim-token",
524 },
525 }),
526 { status: 200 },
527 ),
528 );
529
530 try {
531 writeFileSync(join(dir, "index.html"), "<html></html>", "utf-8");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected