Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ const explorer = cosmiconfig("jesttransformcss");
const transformConfig = explorer.searchSync();

module.exports = {
getCacheKey: (fileData, filename, configString, { instrument }) => {
getCacheKey: (fileData, filename, configString, options) => {
// Jest 27 passes a single options bag which contains `configString` rather than as a separate argument
if (!options) {
options = configString;
configString = options.configString;
}
const { instrument} = options;
return (
crypto
.createHash("md5")
Expand Down