File tree 5 files changed +234
-46
lines changed
5 files changed +234
-46
lines changed Original file line number Diff line number Diff line change 7
7
### Chore & Maintenance
8
8
9
9
- ` [website] ` Switch domain to https://jestjs.io ([ #6549 ] ( https://github.com/facebook/jest/pull/6549 ) )
10
+ - ` [tests] ` Free tests from the dependency on value of FORCE_COLOR ([ #TBD] ( https://github.com/facebook/jest/pull/TBD/files ) )
10
11
11
12
## 23.2.0
12
13
Original file line number Diff line number Diff line change @@ -49,13 +49,8 @@ function runJest(
49
49
) ;
50
50
}
51
51
52
- const env = options . nodePath
53
- ? Object . assign ( { } , process . env , {
54
- FORCE_COLOR : 0 ,
55
- NODE_PATH : options . nodePath ,
56
- } )
57
- : process . env ;
58
-
52
+ const env = Object . assign ( { } , process . env , { FORCE_COLOR : 0 } ) ;
53
+ if ( options . nodePath ) env [ 'NODE_PATH' ] = options . nodePath ;
59
54
const result = spawnSync ( JEST_PATH , args || [ ] , {
60
55
cwd : dir ,
61
56
env,
@@ -118,12 +113,8 @@ runJest.until = async function(
118
113
) ;
119
114
}
120
115
121
- const env = options . nodePath
122
- ? Object . assign ( { } , process . env , {
123
- FORCE_COLOR : 0 ,
124
- NODE_PATH : options . nodePath ,
125
- } )
126
- : process . env ;
116
+ const env = Object . assign ( { } , process . env , { FORCE_COLOR : 0 } ) ;
117
+ if ( options . nodePath ) env [ 'NODE_PATH' ] = options . nodePath ;
127
118
128
119
const jestPromise = execa ( JEST_PATH , args || [ ] , {
129
120
cwd : dir ,
Original file line number Diff line number Diff line change 39
39
"flow-bin" : " ^0.75.0" ,
40
40
"glob" : " ^7.1.1" ,
41
41
"graceful-fs" : " ^4.1.11" ,
42
- "istanbul-api" : " ^1.3.1 " ,
43
- "istanbul-lib-coverage" : " ^1 .0.0" ,
42
+ "istanbul-api" : " ^2.0.0 " ,
43
+ "istanbul-lib-coverage" : " ^2 .0.0" ,
44
44
"jasmine-reporters" : " ^2.2.0" ,
45
45
"jest-junit" : " ^5.1.0" ,
46
46
"jest-silent-reporter" : " ^0.0.5" ,
Original file line number Diff line number Diff line change 11
11
"graceful-fs" : " ^4.1.11" ,
12
12
"import-local" : " ^1.0.0" ,
13
13
"is-ci" : " ^1.0.10" ,
14
- "istanbul-api" : " ^1.3.1 " ,
15
- "istanbul-lib-coverage" : " ^1.2 .0" ,
16
- "istanbul-lib-instrument" : " ^1.10.1 " ,
17
- "istanbul-lib-source-maps" : " ^1.2.4 " ,
14
+ "istanbul-api" : " ^2.0.0 " ,
15
+ "istanbul-lib-coverage" : " ^2.0 .0" ,
16
+ "istanbul-lib-instrument" : " ^2.3.0 " ,
17
+ "istanbul-lib-source-maps" : " ^2.0.0 " ,
18
18
"jest-changed-files" : " ^23.2.0" ,
19
19
"jest-config" : " ^23.2.0" ,
20
20
"jest-environment-jsdom" : " ^23.2.0" ,
You can’t perform that action at this time.
0 commit comments