Skip to content

Commit 17f84f0

Browse files
committed
chore: windowsssssssssssss
1 parent 1c1980e commit 17f84f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib/commands/read-stdin.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ export async function readStdin(stdinStream: typeof process.stdin = process.stdi
3030
if ((stat.mode & constants.S_IFIFO) === constants.S_IFIFO) {
3131
return 100;
3232
}
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+
}
3338
}
3439

3540
// isFIFO -> `node a | node b`

0 commit comments

Comments
 (0)