(
args: readonly string[],
options: {
stdio?: 'pipe' | 'ignore';
cwd?: string;
env?: Record<string, string>;
} = {},
)
| 219 | }, |
| 220 | |
| 221 | startNgProcess( |
| 222 | args: readonly string[], |
| 223 | options: { |
| 224 | stdio?: 'pipe' | 'ignore'; |
| 225 | cwd?: string; |
| 226 | env?: Record<string, string>; |
| 227 | } = {}, |
| 228 | ): ChildProcess { |
| 229 | const resolved = resolveNgCommand(args, options.cwd); |
| 230 | |
| 231 | return spawn(resolved.command, resolved.args, { |
| 232 | shell: false, |
| 233 | stdio: options.stdio ?? 'pipe', |
| 234 | cwd: options.cwd, |
| 235 | env: { |
| 236 | ...process.env, |
| 237 | ...options.env, |
| 238 | }, |
| 239 | }); |
| 240 | }, |
| 241 | |
| 242 | getAvailablePort(): Promise<number> { |
| 243 | return new Promise((resolve, reject) => { |
nothing calls this directly
no test coverage detected