Skip to content

Commit

Permalink
fix: colors on forks pool
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Dec 17, 2024
1 parent 4e60333 commit f64c3ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vitest/src/node/pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { Vitest } from './core'
import type { TestProject } from './project'
import type { TestSpecification } from './spec'
import type { BuiltinPool, Pool } from './types/pool-options'
import { isatty } from 'node:tty'
import mm from 'micromatch'
import { isWindows } from '../utils/env'
import { createForksPool } from './pools/forks'
Expand Down Expand Up @@ -124,6 +125,7 @@ export function createPool(ctx: Vitest): ProcessPool {
VITEST: 'true',
NODE_ENV: process.env.NODE_ENV || 'test',
VITEST_MODE: ctx.config.watch ? 'WATCH' : 'RUN',
FORCE_TTY: isatty(1) ? 'true' : '',
...process.env,
...ctx.config.env,
},
Expand Down

0 comments on commit f64c3ed

Please sign in to comment.