Skip to content

Commit 5b934de

Browse files
committed
Merge presets together.
1 parent 0d153f4 commit 5b934de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/babel-jest/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const jestPreset = require('babel-preset-jest');
1414
const createTransformer = options => {
1515
options = Object.assign({}, options, {
1616
auxiliaryCommentBefore: ' istanbul ignore next ',
17-
presets: [jestPreset],
17+
presets: ((options && options.presets) || []).concat([jestPreset]),
1818
retainLines: true,
1919
});
2020
delete options.cacheDirectory;

0 commit comments

Comments
 (0)