@@ -297,7 +297,7 @@ function invokeNode(args, done, opts = {}) {
297
297
*
298
298
* @param {string[] } args - Path to executable and arguments
299
299
* @param {RawResultCallback } done - Callback
300
- * @param {Object|string } [opts] - Options to `cross-spawn` or ` child_process.fork ` or 'pipe' for shortcut to `{stdio: pipe}`
300
+ * @param {Object|string } [opts] - Options to `child_process` or 'pipe' for shortcut to `{stdio: pipe}`
301
301
* @param {boolean } [opts.fork] - If `true`, use `child_process.fork` instead
302
302
* @returns {import('child_process').ChildProcess }
303
303
*/
@@ -334,7 +334,7 @@ function createSubprocess(args, done, opts = {}) {
334
334
debug ( 'forking: %s' , args . join ( ' ' ) ) ;
335
335
mocha = fork ( args [ 0 ] , args . slice ( 1 ) , opts ) ;
336
336
} else {
337
- const { spawn} = require ( 'cross-spawn ' ) ;
337
+ const { spawn} = require ( 'child_process ' ) ;
338
338
debug ( 'spawning: %s' , [ process . execPath ] . concat ( args ) . join ( ' ' ) ) ;
339
339
mocha = spawn ( process . execPath , args , opts ) ;
340
340
}
@@ -400,11 +400,11 @@ function getSummary(res) {
400
400
* and waits until the second test run has been completed. Mocha is
401
401
* killed and the result is returned.
402
402
*
403
- * On Windows, this will call `child_process.fork()` instead of `cross-spawn. spawn()`.
403
+ * On Windows, this will call `child_process.fork()` instead of `spawn()`.
404
404
*
405
405
* **Exit code will always be 0**
406
406
* @param {string[] } args - Array of argument strings
407
- * @param {object|string } opts - If a `string`, then `cwd`, otherwise options for `cross-spawn.spawn` or ` child_process.fork `
407
+ * @param {object|string } opts - If a `string`, then `cwd`, otherwise options for `child_process`
408
408
* @param {Function } change - A potentially `Promise`-returning callback to execute which will change a watched file
409
409
* @returns {Promise<RawResult> }
410
410
*/
@@ -451,11 +451,11 @@ async function runMochaWatchAsync(args, opts, change) {
451
451
* and waits until the second test run has been completed. Mocha is
452
452
* killed and the result is returned.
453
453
*
454
- * On Windows, this will call `child_process.fork()` instead of `cross-spawn. spawn()`.
454
+ * On Windows, this will call `child_process.fork()` instead of `spawn()`.
455
455
*
456
456
* **Exit code will always be 0**
457
457
* @param {string[] } args - Array of argument strings
458
- * @param {object|string } opts - If a `string`, then `cwd`, otherwise options for `cross-spawn.spawn` or ` child_process.fork `
458
+ * @param {object|string } opts - If a `string`, then `cwd`, otherwise options for `child_process`
459
459
* @param {Function } change - A potentially `Promise`-returning callback to execute which will change a watched file
460
460
* @returns {Promise<JSONResult> }
461
461
*/
0 commit comments