Skip to content

Commit

Permalink
Fixes the jest-haste-map mapper option (#8299)
Browse files Browse the repository at this point in the history
* Fixes the jest-haste-map mapper option

* Update CHANGELOG.md
  • Loading branch information
arcanis authored and scotthovestadt committed Apr 10, 2019
1 parent 1f37a4e commit 820c2b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -8,6 +8,7 @@

- `[jest-snapshot]` Inline snapshots: do not indent empty lines ([#8277](https://github.com/facebook/jest/pull/8277))
- `[jest-core]` Make `detectOpenHandles` imply `runInBand` ([#8283](https://github.com/facebook/jest/pull/8283))
- `[jest-haste-map]` Fix the `mapper` option which was incorrectly ignored ([#8299](https://github.com/facebook/jest/pull/8299))

### Chore & Maintenance

Expand Down
1 change: 1 addition & 0 deletions packages/jest-haste-map/src/index.ts
Expand Up @@ -256,6 +256,7 @@ class HasteMap extends EventEmitter {
forceNodeFilesystemAPI: !!options.forceNodeFilesystemAPI,
hasteImplModulePath: options.hasteImplModulePath,
ignorePattern: options.ignorePattern,
mapper: options.mapper,
maxWorkers: options.maxWorkers,
mocksPattern: options.mocksPattern
? new RegExp(options.mocksPattern)
Expand Down

0 comments on commit 820c2b1

Please sign in to comment.