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 6517c7b commit d9c2f99Copy full SHA for d9c2f99
1 file changed
packages/jest-cli/src/watch.js
@@ -16,6 +16,8 @@ const ansiEscapes = require('ansi-escapes');
16
const chalk = require('chalk');
17
const createContext = require('./lib/createContext');
18
const HasteMap = require('jest-haste-map');
19
+const isCI = require('is-ci');
20
+const isInteractive = process.stdout.isTTY && !isCI;
21
const isValidPath = require('./lib/isValidPath');
22
const preRunMessage = require('./preRunMessage');
23
const runJest = require('./runJest');
@@ -86,7 +88,7 @@ const watch = (
86
88
}
87
89
90
testWatcher = new TestWatcher({isWatchMode: true});
- pipe.write(CLEAR);
91
+ isInteractive && pipe.write(CLEAR);
92
preRunMessage.print(pipe);
93
isRunning = true;
94
return runJest(
0 commit comments