Skip to content

Commit

Permalink
don't let source-map-support use xhr - 25-75% speed improvement (#5045)
Browse files Browse the repository at this point in the history
* don't let source-map-support use xhr

* Update CHANGELOG.md

* Update CHANGELOG.md
  • Loading branch information
lukeapage authored and cpojer committed Dec 11, 2017
1 parent 0c4399b commit 34bd3bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### Fixes

* `[jest-jasmine]` Register sourcemaps as node environment to improve performance with jsdom ([#5045](https://github.com/facebook/jest/pull/5045))
* `[pretty-format]` Do not call toJSON recursively
([#5044](https://github.com/facebook/jest/pull/5044))
* `[pretty-format]` Fix errors when identity-obj-proxy mocks CSS Modules
Expand Down
1 change: 1 addition & 0 deletions packages/jest-jasmine2/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ async function jasmine2(
runtime
.requireModule(require.resolve('source-map-support'), 'source-map-support')
.install({
environment: 'node',
handleUncaughtExceptions: false,
retrieveSourceMap: source => {
if (runtime._sourceMapRegistry[source]) {
Expand Down

0 comments on commit 34bd3bb

Please sign in to comment.