Skip to content

Commit 3942361

Browse files
SimenBcpojer
authored andcommitted
Revert "Remove retainLines from babel-jest (#5439)" (#5496)
* Revert "Remove retainLines from babel-jest (#5439)" This reverts commit 6635d93. * changelog * moar changelog
1 parent efec054 commit 3942361

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
## master
22

3+
### Fixes
4+
5+
* `[babel-jest]` Revert "Remove retainLines from babel-jest"
6+
([#5496](https://github.com/facebook/jest/pull/5496))
7+
38
### Features
49

510
* `[jest-worker]` Assign a unique id for each worker and pass it to the child
@@ -40,7 +45,7 @@
4045
* `[jest-cli]` Hide interactive mode if there are no failed snapshot tests
4146
([#5450](https://github.com/facebook/jest/pull/5450))
4247
* `[babel-jest]` Remove retainLines from babel-jest
43-
([#5326](https://github.com/facebook/jest/pull/5439))
48+
([#5439](https://github.com/facebook/jest/pull/5439))
4449
* `[jest-cli]` Glob patterns ignore non-`require`-able files (e.g. `README.md`)
4550
([#5199](https://github.com/facebook/jest/issues/5199))
4651
* `[jest-mock]` Add backticks support (\`\`) to `mock` a certain package via the

packages/babel-jest/src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ const createTransformer = (options: any) => {
6969
options = Object.assign({}, options, {
7070
plugins: (options && options.plugins) || [],
7171
presets: ((options && options.presets) || []).concat([jestPreset]),
72+
retainLines: true,
7273
sourceMaps: 'inline',
7374
});
7475
delete options.cacheDirectory;

0 commit comments

Comments
 (0)