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 4e60333 commit f64c3edCopy full SHA for f64c3ed
packages/vitest/src/node/pool.ts
@@ -3,6 +3,7 @@ import type { Vitest } from './core'
3
import type { TestProject } from './project'
4
import type { TestSpecification } from './spec'
5
import type { BuiltinPool, Pool } from './types/pool-options'
6
+import { isatty } from 'node:tty'
7
import mm from 'micromatch'
8
import { isWindows } from '../utils/env'
9
import { createForksPool } from './pools/forks'
@@ -124,6 +125,7 @@ export function createPool(ctx: Vitest): ProcessPool {
124
125
VITEST: 'true',
126
NODE_ENV: process.env.NODE_ENV || 'test',
127
VITEST_MODE: ctx.config.watch ? 'WATCH' : 'RUN',
128
+ FORCE_TTY: isatty(1) ? 'true' : '',
129
...process.env,
130
...ctx.config.env,
131
},
0 commit comments