Skip to content

Commit

Permalink
Add parseInt, parseFloat and isNaN to mock whitelist (#5691)
Browse files Browse the repository at this point in the history
* Add parseInt, parseFloat and isNaN to mock whitelist

* Fix keys order

* Fix keys order
  • Loading branch information
ai authored and cpojer committed Feb 28, 2018
1 parent a88d3c5 commit 4037b79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/babel-plugin-jest-hoist/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ const WHITELISTED_IDENTIFIERS = {
WeakSet: true,
arguments: true,
expect: true,
isNaN: true,
jest: true,
parseFloat: true,
parseInt: true,
require: true,
undefined: true,
};
Expand Down

0 comments on commit 4037b79

Please sign in to comment.