@@ -297,7 +297,7 @@ function invokeNode(args, done, opts = {}) {
297297 *
298298 * @param {string[] } args - Path to executable and arguments
299299 * @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}`
301301 * @param {boolean } [opts.fork] - If `true`, use `child_process.fork` instead
302302 * @returns {import('child_process').ChildProcess }
303303 */
@@ -334,7 +334,7 @@ function createSubprocess(args, done, opts = {}) {
334334 debug ( 'forking: %s' , args . join ( ' ' ) ) ;
335335 mocha = fork ( args [ 0 ] , args . slice ( 1 ) , opts ) ;
336336 } else {
337- const { spawn} = require ( 'cross-spawn ' ) ;
337+ const { spawn} = require ( 'child_process ' ) ;
338338 debug ( 'spawning: %s' , [ process . execPath ] . concat ( args ) . join ( ' ' ) ) ;
339339 mocha = spawn ( process . execPath , args , opts ) ;
340340 }
@@ -400,11 +400,11 @@ function getSummary(res) {
400400 * and waits until the second test run has been completed. Mocha is
401401 * killed and the result is returned.
402402 *
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()`.
404404 *
405405 * **Exit code will always be 0**
406406 * @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`
408408 * @param {Function } change - A potentially `Promise`-returning callback to execute which will change a watched file
409409 * @returns {Promise<RawResult> }
410410 */
@@ -451,11 +451,11 @@ async function runMochaWatchAsync(args, opts, change) {
451451 * and waits until the second test run has been completed. Mocha is
452452 * killed and the result is returned.
453453 *
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()`.
455455 *
456456 * **Exit code will always be 0**
457457 * @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`
459459 * @param {Function } change - A potentially `Promise`-returning callback to execute which will change a watched file
460460 * @returns {Promise<JSONResult> }
461461 */
0 commit comments