Skip to content

Commit 7400653

Browse files
committed
chore: windowsssssssssssss
1 parent a5bdb96 commit 7400653

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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)