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.
1 parent 228067e commit c3cac1cCopy full SHA for c3cac1c
packages/vitest/src/defaults.ts
@@ -5,7 +5,7 @@ import type {
5
UserConfig,
6
} from './node/types/config'
7
import os from 'node:os'
8
-import { isCI } from './utils/env'
+import { isAgent, isCI } from './utils/env'
9
10
export { defaultBrowserPort } from './constants'
11
@@ -93,7 +93,7 @@ export const configDefaults: Readonly<{
93
}> = Object.freeze({
94
allowOnly: !isCI,
95
isolate: true,
96
- watch: !isCI && process.stdin.isTTY,
+ watch: !isCI && process.stdin.isTTY && !isAgent,
97
globals: false,
98
environment: 'node' as const,
99
clearMocks: false,
0 commit comments