Skip to content

Commit

Permalink
add console global to the whitelisted identifiers (#6075)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyagru authored and thymikee committed May 16, 2018
1 parent 1ea05fb commit bed949b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

### Fixes

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

Expand Down
1 change: 1 addition & 0 deletions packages/babel-plugin-jest-hoist/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const WHITELISTED_IDENTIFIERS = {
WeakMap: true,
WeakSet: true,
arguments: true,
console: true,
expect: true,
jest: true,
require: true,
Expand Down

0 comments on commit bed949b

Please sign in to comment.