File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
packages/jest-create-cache-key-function/src Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 44
55### Fixes
66
7+ ### Performance
8+
9+ - ` [@jest/create-cache-key-function] ` Cache access of ` NODE_ENV ` and ` BABEL_ENV ` ([ #14455 ] ( https://github.com/jestjs/jest/pull/14455 ) )
10+
711### Chore & Maintenance
812
913## 29.6.4
Original file line number Diff line number Diff line change @@ -40,14 +40,16 @@ type NewGetCacheKeyFunction = (
4040
4141type GetCacheKeyFunction = OldGetCacheKeyFunction | NewGetCacheKeyFunction ;
4242
43+ const { NODE_ENV , BABEL_ENV } = process . env ;
44+
4345function getGlobalCacheKey (
4446 files : Array < string > ,
4547 values : Array < string > ,
4648 length : number ,
4749) {
4850 return [
49- process . env . NODE_ENV ,
50- process . env . BABEL_ENV ,
51+ NODE_ENV ,
52+ BABEL_ENV ,
5153 ...values ,
5254 ...files . map ( ( file : string ) => readFileSync ( file ) ) ,
5355 ]
You can’t perform that action at this time.
0 commit comments