Skip to content

Commit

Permalink
Revert "Remove retainLines from babel-jest (#5439)" (#5496)
Browse files Browse the repository at this point in the history
* Revert "Remove retainLines from babel-jest (#5439)"

This reverts commit 6635d93.

* changelog

* moar changelog
  • Loading branch information
SimenB authored and cpojer committed Feb 8, 2018
1 parent efec054 commit 3942361
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## master

### Fixes

* `[babel-jest]` Revert "Remove retainLines from babel-jest"
([#5496](https://github.com/facebook/jest/pull/5496))

### Features

* `[jest-worker]` Assign a unique id for each worker and pass it to the child
Expand Down Expand Up @@ -40,7 +45,7 @@
* `[jest-cli]` Hide interactive mode if there are no failed snapshot tests
([#5450](https://github.com/facebook/jest/pull/5450))
* `[babel-jest]` Remove retainLines from babel-jest
([#5326](https://github.com/facebook/jest/pull/5439))
([#5439](https://github.com/facebook/jest/pull/5439))
* `[jest-cli]` Glob patterns ignore non-`require`-able files (e.g. `README.md`)
([#5199](https://github.com/facebook/jest/issues/5199))
* `[jest-mock]` Add backticks support (\`\`) to `mock` a certain package via the
Expand Down
1 change: 1 addition & 0 deletions packages/babel-jest/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ const createTransformer = (options: any) => {
options = Object.assign({}, options, {
plugins: (options && options.plugins) || [],
presets: ((options && options.presets) || []).concat([jestPreset]),
retainLines: true,
sourceMaps: 'inline',
});
delete options.cacheDirectory;
Expand Down

0 comments on commit 3942361

Please sign in to comment.