Skip to content

Commit

Permalink
Fix cache race condition by including filename in cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Sep 5, 2017
1 parent 4f18758 commit e9afe00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/babel-jest/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ const createTransformer = (options: any) => {
.update('\0', 'utf8')
.update(fileData)
.update('\0', 'utf8')
.update(filename)
.update('\0', 'utf8')
.update(configString)
.update('\0', 'utf8')
.update(getBabelRC(filename))
Expand Down

0 comments on commit e9afe00

Please sign in to comment.