Skip to content

Commit ded6a14

Browse files
Sean Poulterconnectdotz
authored andcommitted
Start Jest with the --no-color CLI argument
1 parent 655ab3f commit ded6a14

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Bug-fixes within the same version aren't needed
55
66
## Master
77
8+
* Prevent ANSI escape codes from appearing in test messages - seanpoulter
89
* Your message here - name
910
1011
-->

src/JestProcessManagement/JestProcess.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ export class JestProcess {
1818
this.stopRequested = false
1919
let exited = false
2020

21-
const useShell = platform() === 'win32'
22-
this.runner = new Runner(this.projectWorkspace, { shell: useShell })
21+
const options = {
22+
noColor: true,
23+
shell: platform() === 'win32',
24+
}
25+
this.runner = new Runner(this.projectWorkspace, options)
2326

2427
this.restoreJestEvents()
2528

0 commit comments

Comments
 (0)