Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/jest/createCacheKeyFunction.js b/jest/createCacheKeyFunction.js | ||
index 890918962daebefedee59a48cd02906447f9de5b..2e73413d30a9964891608eb9ec02568b981b5ba0 100644 | ||
--- a/jest/createCacheKeyFunction.js | ||
+++ b/jest/createCacheKeyFunction.js | ||
@@ -32,6 +32,8 @@ function getGlobalCacheKey(files, values) { | ||
|
||
function getCacheKeyFunction(globalCacheKey) { | ||
return (src, file, configString, options) => { | ||
+ // Jest 27 passes a single options bag which contains `configString` rather than as a separate argument | ||
+ options = options || configString; | ||
const {instrument, config} = options; | ||
const rootDir = config && config.rootDir; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters