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

Function runInit

packages/cli/src/commands/init.test.ts:17–30  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

15// would be node and couldn't load the entry. This repo hard-depends on bun
16// (package.json scripts), so assuming it's on PATH is safe.
17function runInit(args: string[]): { status: number; stdout: string; stderr: string } {
18 const res = spawnSync("bun", ["run", cliEntry, "init", ...args], {
19 encoding: "utf-8",
20 timeout: 30_000,
21 // The `--skip-skills` flag is neutered (see init.ts); the GitHub skills check
22 // is opted out only via this env var, so tests stay offline and fast.
23 env: { ...process.env, HYPERFRAMES_SKIP_SKILLS: "1" },
24 });
25 return {
26 status: res.status ?? -1,
27 stdout: res.stdout,
28 stderr: res.stderr,
29 };
30}
31
32describe("hyperframes init flag rename", () => {
33 it("--example blank scaffolds a bundled project with npm scripts", () => {

Callers 1

init.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected