Skip to content

Commit 153a4f6

Browse files
ideFacebook Github Bot 7
authored andcommitted
Support @scoped packages when writing perf cache
Summary:Runs mkdirp since scoped packages look like `scope/pkg` which introduce an extra level in the directory hierarchy when creating the filename for the perf cache. Fixes jestjs#845. Closes jestjs#846 Differential Revision: D3113637 fb-gh-sync-id: 916cbce81b3eafeebfaf3e7849ab6788b338cea7 fbshipit-source-id: 916cbce81b3eafeebfaf3e7849ab6788b338cea7
1 parent b01ab18 commit 153a4f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TestRunner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class TestRunner {
226226

227227
_getTestPerformanceCachePath() {
228228
const config = this._config;
229-
return path.join(config.cacheDirectory, 'perf-cache-' + config.name);
229+
return getCacheFilePath(config.cacheDirectory, 'perf-cache-' + config.name);
230230
}
231231

232232
_sortTests(testPaths) {

0 commit comments

Comments
 (0)