| 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. |
| 17 | function 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 | |
| 32 | describe("hyperframes init flag rename", () => { |
| 33 | it("--example blank scaffolds a bundled project with npm scripts", () => { |