Skip to content

Commit 4037b79

Browse files
aicpojer
authored andcommitted
Add parseInt, parseFloat and isNaN to mock whitelist (#5691)
* Add parseInt, parseFloat and isNaN to mock whitelist * Fix keys order * Fix keys order
1 parent a88d3c5 commit 4037b79

File tree

1 file changed

+3
-0
lines changed
  • packages/babel-plugin-jest-hoist/src

1 file changed

+3
-0
lines changed

packages/babel-plugin-jest-hoist/src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ const WHITELISTED_IDENTIFIERS = {
6161
WeakSet: true,
6262
arguments: true,
6363
expect: true,
64+
isNaN: true,
6465
jest: true,
66+
parseFloat: true,
67+
parseInt: true,
6568
require: true,
6669
undefined: true,
6770
};

0 commit comments

Comments
 (0)