mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
PR-URL: https://github.com/nodejs/node/pull/60125 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
15 lines
422 B
JavaScript
15 lines
422 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
const assert = require('node:assert/strict');
|
|
const childProcess = require('node:child_process');
|
|
const fixtures = require('../common/fixtures');
|
|
|
|
const child = childProcess.spawnSync(
|
|
process.execPath,
|
|
[ '--no-warnings', '--run', 'non-existent-command'],
|
|
{ cwd: fixtures.path('run-script'), encoding: 'utf8' },
|
|
);
|
|
assert.strictEqual(child.status, 1);
|
|
console.log(child.stderr);
|