Skip to content

Commit

Permalink
DEV CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchhentgesspotify committed Oct 18, 2022
1 parent ac8ec97 commit e9cc370
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/jest-transform/src/ScriptTransformer.ts
Expand Up @@ -462,6 +462,7 @@ class ScriptTransformer {
const {transformer, transformerConfig = {}} =
this._getTransformer(filename) ?? {};
const cacheFilePath = this._getFileCachePath(filename, content, options);
createDirectory(path.dirname(cacheFilePath));
const sourceMapPath = `${cacheFilePath}.map`;
// Ignore cache if `config.cache` is set (--no-cache)
const code = this._config.cache ? readCodeCacheFile(cacheFilePath) : null;
Expand Down Expand Up @@ -522,6 +523,7 @@ class ScriptTransformer {
content,
options,
);
createDirectory(path.dirname(cacheFilePath));
const sourceMapPath = `${cacheFilePath}.map`;
// Ignore cache if `config.cache` is set (--no-cache)
const code = this._config.cache ? readCodeCacheFile(cacheFilePath) : null;
Expand Down

0 comments on commit e9cc370

Please sign in to comment.