Skip to content

Commit

Permalink
fix(jest-preset): use correct import of babel-jest package
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuel Kluge committed Jun 7, 2021
1 parent d2e2c35 commit a914ed8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/jest-preset/transforms/babel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const babelJest = require('babel-jest');
const babelJest = ((mod) => {
return mod.default || mod;
})(require('babel-jest'));

const babelConfig = {
presets: [
Expand Down

0 comments on commit a914ed8

Please sign in to comment.