@@ -23,6 +23,8 @@ interface CachedConfigSet {
23
23
jestConfig : JsonableValue < ProjectConfigTsJest >
24
24
transformerCfgStr : string
25
25
compiler : TsJestCompiler
26
+ depGraphs : Map < string , DepGraphInfo >
27
+ tsResolvedModulesCachePath : string | undefined
26
28
}
27
29
28
30
interface TsJestHooksMap {
@@ -65,6 +67,8 @@ export class TsJestTransformer implements Transformer {
65
67
if ( ccs ) {
66
68
this . _transformCfgStr = ccs . transformerCfgStr
67
69
this . _compiler = ccs . compiler
70
+ this . _depGraphs = ccs . depGraphs
71
+ this . _tsResolvedModulesCachePath = ccs . tsResolvedModulesCachePath
68
72
configSet = ccs . configSet
69
73
} else {
70
74
// try to look-it up by stringified version
@@ -79,6 +83,8 @@ export class TsJestTransformer implements Transformer {
79
83
serializedCcs . jestConfig . value = config
80
84
this . _transformCfgStr = serializedCcs . transformerCfgStr
81
85
this . _compiler = serializedCcs . compiler
86
+ this . _depGraphs = serializedCcs . depGraphs
87
+ this . _tsResolvedModulesCachePath = serializedCcs . tsResolvedModulesCachePath
82
88
configSet = serializedCcs . configSet
83
89
} else {
84
90
// create the new record in the index
@@ -92,13 +98,15 @@ export class TsJestTransformer implements Transformer {
92
98
jest . cacheDirectory = undefined as any
93
99
this . _transformCfgStr = `${ new JsonableValue ( jest ) . serialized } ${ configSet . cacheSuffix } `
94
100
this . _compiler = new TsJestCompiler ( configSet , cacheFS )
101
+ this . _getFsCachedResolvedModules ( configSet )
95
102
TsJestTransformer . _cachedConfigSets . push ( {
96
103
jestConfig : new JsonableValue ( config ) ,
97
104
configSet,
98
105
transformerCfgStr : this . _transformCfgStr ,
99
106
compiler : this . _compiler ,
107
+ depGraphs : this . _depGraphs ,
108
+ tsResolvedModulesCachePath : this . _tsResolvedModulesCachePath ,
100
109
} )
101
- this . _getFsCachedResolvedModules ( configSet )
102
110
}
103
111
}
104
112
0 commit comments