Skip to content

Commit 45db59d

Browse files
ilyagrucpojer
authored andcommitted
add console global to the whitelisted identifiers (#6075)
1 parent a5e9894 commit 45db59d

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
@@ -76,6 +76,8 @@
7676

7777
### Fixes
7878

79+
* `[babel-plugin-jest-hoist]` Allow using `console` global variable
80+
([#6074](https://github.com/facebook/jest/pull/6074))
7981
* `[jest-jasmine2]` Always remove node core message from assert stack traces
8082
([#6055](https://github.com/facebook/jest/pull/6055))
8183
* `[expect]` Add stack trace when `expect.assertions` and `expect.hasAssertions`

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
isNaN: true,
6566
jest: true,

0 commit comments

Comments
 (0)