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.
stdin
1 parent 28109cc commit fc51ad0Copy full SHA for fc51ad0
packages/vitest/src/node/cli-api.ts
@@ -87,7 +87,7 @@ export async function startVitest(
87
}
88
89
let stdinCleanup
90
- if (process.stdin.isTTY)
+ if (process.stdin.isTTY && ctx.config.watch)
91
stdinCleanup = registerConsoleShortcuts(ctx)
92
93
ctx.onServerRestart((reason) => {
packages/vitest/src/node/stdin.ts
@@ -49,10 +49,6 @@ export function registerConsoleShortcuts(ctx: Vitest) {
49
return
50
51
52
- // Other keys are for watch mode only
53
- if (!ctx.config.watch)
54
- return
55
-
56
const name = key?.name
57
58
if (ctx.runningPromise) {
0 commit comments