File tree 1 file changed +11
-2
lines changed
packages/jest-transform/src
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -542,7 +542,14 @@ class ScriptTransformer {
542
542
543
543
let shouldCallTransform = false ;
544
544
545
- if ( transformer && this . shouldTransform ( filename ) ) {
545
+ // success
546
+ // success
547
+ console . log ( transformer ) ;
548
+ if ( cacheFilePath ) {
549
+ createDirectory ( path . dirname ( cacheFilePath ) ) ;
550
+ }
551
+ if ( transformer && this . shouldTransform ( filename , cacheFilePath ) ) {
552
+ // failed
546
553
shouldCallTransform = true ;
547
554
const process = transformer . processAsync ?? transformer . process ;
548
555
@@ -810,11 +817,13 @@ class ScriptTransformer {
810
817
}
811
818
}
812
819
813
- shouldTransform ( filename : string ) : boolean {
820
+ shouldTransform ( filename : string , cacheFilePath ?: string ) : boolean {
821
+ // failed
814
822
const ignoreRegexp = this . _cache . ignorePatternsRegExp ;
815
823
const isIgnored = ignoreRegexp ? ignoreRegexp . test ( filename ) : false ;
816
824
817
825
return this . _config . transform . length !== 0 && ! isIgnored ;
826
+ // failed
818
827
}
819
828
}
820
829
You can’t perform that action at this time.
0 commit comments