Skip to content

Commit e9afe00

Browse files
committed
Fix cache race condition by including filename in cache key
1 parent 4f18758 commit e9afe00

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/babel-jest/src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ const createTransformer = (options: any) => {
9090
.update('\0', 'utf8')
9191
.update(fileData)
9292
.update('\0', 'utf8')
93+
.update(filename)
94+
.update('\0', 'utf8')
9395
.update(configString)
9496
.update('\0', 'utf8')
9597
.update(getBabelRC(filename))

0 commit comments

Comments
 (0)