(
command: string,
args: string[] = [],
{ cwd, env = {} }: ProcessOptions
)
| 41 | export const getCliPath = () => CLI_PATH; |
| 42 | |
| 43 | export const runProcess = async ( |
| 44 | command: string, |
| 45 | args: string[] = [], |
| 46 | { cwd, env = {} }: ProcessOptions |
| 47 | ): Promise<RenderResult> => { |
| 48 | return render(command, args, { |
| 49 | cwd, |
| 50 | spawnOpts: { |
| 51 | env: { |
| 52 | ...process.env, |
| 53 | ...DEFAULT_TEST_ENV, |
| 54 | ...env |
| 55 | } |
| 56 | } |
| 57 | }); |
| 58 | }; |
| 59 | |
| 60 | export const runCli = async ( |
| 61 | args: string[] = [], |
no test coverage detected
searching dependent graphs…