Skip to content

Commit

Permalink
Include createTransformer options in babel-jest's getCacheKey() (#6699)
Browse files Browse the repository at this point in the history
Fixes #6698.
  • Loading branch information
edmorley authored and SimenB committed Jul 16, 2018
1 parent 1cc7dbf commit ee0f92e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
## master

### Fixes

- `[babel-jest]` Make `getCacheKey()` take into account `createTransformer` options ([#6699](https://github.com/facebook/jest/pull/6699))

## 23.4.1

### Features

- `[jest-cli]` Watch plugins now have access to a broader range of global configuration options in their `updateConfigAndRun` callbacks, so they can provide a wider set of extra features ([#6473](https://github.com/facebook/jest/pull/6473))

## Fixes
### Fixes

- `[jest-haste-map]` Optimize watchman crawler by using `glob` on initial query ([#6689](https://github.com/facebook/jest/pull/6689))

Expand Down
2 changes: 2 additions & 0 deletions packages/babel-jest/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ const createTransformer = (options: any): Transformer => {
.createHash('md5')
.update(THIS_FILE)
.update('\0', 'utf8')
.update(JSON.stringify(options))
.update('\0', 'utf8')
.update(fileData)
.update('\0', 'utf8')
.update(path.relative(rootDir, filename))
Expand Down

0 comments on commit ee0f92e

Please sign in to comment.