We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5bdb96 commit 7400653Copy full SHA for 7400653
1 file changed
src/lib/commands/read-stdin.ts
@@ -30,6 +30,11 @@ export async function readStdin(stdinStream: typeof process.stdin = process.stdi
30
if ((stat.mode & constants.S_IFIFO) === constants.S_IFIFO) {
31
return 100;
32
}
33
+
34
+ // In node 18, for some reason this returns true for vitest, and thus always hangs.
35
+ if (stat.isFile()) {
36
+ return 50;
37
+ }
38
39
40
// isFIFO -> `node a | node b`
0 commit comments