Skip to content
/ jest Public
forked from jestjs/jest

Commit

Permalink
Merge pull request #2 from SimenB/inline-require
Browse files Browse the repository at this point in the history
Inline require
  • Loading branch information
cpojer authored Jun 13, 2017
2 parents 5c83993 + 0c71336 commit bb59fc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"transform-es2015-parameters",
"transform-async-to-generator",
"transform-strict-mode",
["transform-inline-imports-commonjs", {"allowTopLevelThis": true}]
["transform-inline-imports-commonjs", {"allowTopLevelThis": true, "excludeModules": ["jest-matcher-utils"]}]
],
"retainLines": true
}
4 changes: 2 additions & 2 deletions packages/jest-matchers/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import type {
ThrowingMatcherFn,
PromiseMatcherFn,
} from 'types/Matchers';
// jest-matcher-utils needs to be eagerly evaluated
const utils = require('jest-matcher-utils');

import utils from 'jest-matcher-utils';
import matchers from './matchers';
import spyMatchers from './spyMatchers';
import toThrowMatchers from './toThrowMatchers';
Expand Down

0 comments on commit bb59fc2

Please sign in to comment.