Skip to content

Commit bed949b

Browse files
ilyagruthymikee
authored andcommitted
add console global to the whitelisted identifiers (#6075)
1 parent 1ea05fb commit bed949b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
### Fixes
66

7+
* `[babel-plugin-jest-hoist]` Allow using `console` global variable
8+
([#6074](https://github.com/facebook/jest/pull/6074))
79
* `[jest-jasmine2]` Always remove node core message from assert stack traces
810
([#6061](https://github.com/facebook/jest/pull/6061))
911

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const WHITELISTED_IDENTIFIERS = {
6060
WeakMap: true,
6161
WeakSet: true,
6262
arguments: true,
63+
console: true,
6364
expect: true,
6465
jest: true,
6566
require: true,

0 commit comments

Comments
 (0)