Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions test/parallel/test-stdin-from-file.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
'use strict';
const common = require('../common');
const { path } = require('../common/fixtures');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is somewhat confusing because it has the same name as the path module and therefore I would normally expect it to be the path module. It would be nicer to use the fixture name here instead.

const assert = require('assert');
const join = require('path').join;
const { join } = require('path');
const childProcess = require('child_process');
const fs = require('fs');

const stdoutScript = join(common.fixturesDir, 'echo-close-check.js');
const stdoutScript = path('echo-close-check.js');
const tmpFile = join(common.tmpDir, 'stdin.txt');

const cmd = `"${process.argv[0]}" "${stdoutScript}" < "${tmpFile}"`;
Expand Down