MCPcopy Create free account
hub / github.com/effect-app/libs / run

Function run

packages/cli/test/argv-patch.test.ts:154–159  ·  view source on GitHub ↗
(...args: Array<string>)

Source from the content-addressed store, hash-verified

152 const binPath = path.resolve(path.dirname(url.fileURLToPath(import.meta.url)), "../bin.js")
153
154 const run = (...args: Array<string>) =>
155 execFileSync("node", [binPath, ...args], {
156 encoding: "utf-8",
157 timeout: 10_000,
158 env: { ...process.env, NO_COLOR: "1" }
159 })
160
161 it("packagejson spawns 'echo hello' and captures output", () => {
162 const out = run("packagejson", "echo", "hello")

Callers 3

argv-patch.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected