Skip to content

Commit 5ab28b7

Browse files
authored
chore: only render status in tty context (#692)
1 parent 4871b94 commit 5ab28b7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/core/src/reporter/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { relative } from 'pathe';
22
import { parse as stackTraceParse } from 'stacktrace-parser';
3-
import { isCI } from 'std-env';
43
import type {
54
DefaultReporterOptions,
65
Duration,
@@ -13,7 +12,7 @@ import type {
1312
TestResult,
1413
UserConsoleLog,
1514
} from '../types';
16-
import { color, logger } from '../utils';
15+
import { color, isTTY, logger } from '../utils';
1716
import { StatusRenderer } from './statusRenderer';
1817
import { printSummaryErrorLogs, printSummaryLog } from './summary';
1918
import { logCase, logFileTitle } from './utils';
@@ -36,7 +35,7 @@ export class DefaultReporter implements Reporter {
3635
this.rootPath = rootPath;
3736
this.config = config;
3837
this.options = options;
39-
if (!isCI) {
38+
if (isTTY()) {
4039
this.statusRenderer = new StatusRenderer(rootPath);
4140
}
4241
}

0 commit comments

Comments
 (0)