File tree 1 file changed +2
-0
lines changed
packages/jest-transform/src
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -462,6 +462,7 @@ class ScriptTransformer {
462
462
const { transformer, transformerConfig = { } } =
463
463
this . _getTransformer ( filename ) ?? { } ;
464
464
const cacheFilePath = this . _getFileCachePath ( filename , content , options ) ;
465
+ createDirectory ( path . dirname ( cacheFilePath ) ) ;
465
466
const sourceMapPath = `${ cacheFilePath } .map` ;
466
467
// Ignore cache if `config.cache` is set (--no-cache)
467
468
const code = this . _config . cache ? readCodeCacheFile ( cacheFilePath ) : null ;
@@ -522,6 +523,7 @@ class ScriptTransformer {
522
523
content ,
523
524
options ,
524
525
) ;
526
+ createDirectory ( path . dirname ( cacheFilePath ) ) ;
525
527
const sourceMapPath = `${ cacheFilePath } .map` ;
526
528
// Ignore cache if `config.cache` is set (--no-cache)
527
529
const code = this . _config . cache ? readCodeCacheFile ( cacheFilePath ) : null ;
You can’t perform that action at this time.
0 commit comments