Skip to content

Commit

Permalink
Include missing dependency in TestEnvironment sample code (#4908)
Browse files Browse the repository at this point in the history
* Update TestEnvironment sample code to include missing dependency

* Update CHANGELOG.md
  • Loading branch information
jsilvax authored and cpojer committed Nov 17, 2017
1 parent cfc5b53 commit 706b1c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
([#4578](https://github.com/facebook/jest/pull/4578))
* `[jest-runtime]` Add `.advanceTimersByTime`; keep `.runTimersToTime()` as an
alias.
* `[docs]` Include missing dependency in TestEnvironment sample code

## jest 21.2.1

Expand Down
2 changes: 2 additions & 0 deletions docs/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,8 @@ in their own TestEnvironment._
Example:

```js
const NodeEnvironment = require('jest-environment-node');

class CustomEnvironment extends NodeEnvironment {
constructor(config) {
super(config);
Expand Down

0 comments on commit 706b1c9

Please sign in to comment.