(cmd, args, options = {})
| 9 | const build = !process.argv.includes("--skip-build"); |
| 10 | |
| 11 | function command(cmd, args, options = {}) { |
| 12 | const result = spawnSync(cmd, args, { encoding: "utf8", stdio: "pipe", ...options }); |
| 13 | if (result.status !== 0) throw new Error(`${cmd} ${args.join(" ")} failed\n${result.stdout ?? ""}\n${result.stderr ?? ""}`); |
| 14 | return result.stdout ?? ""; |
| 15 | } |
| 16 | |
| 17 | async function get(path) { |
| 18 | const response = await fetch(`http://127.0.0.1:${port}${path}`); |
no outgoing calls
no test coverage detected