diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f43d93ac711..c56b24dca680 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 diff --git a/packages/babel-jest/src/index.js b/packages/babel-jest/src/index.js index 647b56a1ae98..4dd71bacbe87 100644 --- a/packages/babel-jest/src/index.js +++ b/packages/babel-jest/src/index.js @@ -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;