We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3aa43de commit 39ea696Copy full SHA for 39ea696
1 file changed
test/parallel/test-node-run.js
@@ -5,6 +5,7 @@ common.requireNoPackageJSONAbove();
5
6
const { it, describe } = require('node:test');
7
const assert = require('node:assert');
8
+const fs = require('node:fs');
9
10
const fixtures = require('../common/fixtures');
11
const envSuffix = common.isWindows ? '-windows' : '';
@@ -232,6 +233,10 @@ describe('node --run [command]', () => {
232
233
{ cwd: fixtures.path('run-script/sub-directory') }
234
);
235
236
+ const outputPath = child.stdout.trim();
237
+ const stat = fs.lstatSync(outputPath);
238
+
239
+ assert.ok(stat.isDirectory(), `Output path ${outputPath} is not a directory`);
240
assert.strictEqual(child.stdout.trim(), customDir);
241
assert.strictEqual(child.stderr, '');
242
assert.strictEqual(child.code, 0);
0 commit comments