Skip to content

Commit

Permalink
Document 'target' property of the useFakeTimers config
Browse files Browse the repository at this point in the history
  • Loading branch information
fatso83 committed Nov 7, 2019
1 parent a19ab38 commit 6f52a4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/release-source/release/fake-timers.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ You can also pass in a Date object, and its `getTime()` will be used for the sta
As above, but allows further configuration options, some of which are:

- `config.now` - *Number/Date* - installs lolex with the specified unix epoch (default: 0)
- `config.target` - *Object* - use `target` instead of the usual global object. This is useful if you use JSDOM along with Node.
- `config.toFake` - *String[ ]* - an array with explicit function names to fake. By default lolex will automatically fake all methods *except* `process.nextTick`. You could, however, still fake `nextTick` by providing it explicitly
- `config.shouldAdvanceTime` - *Boolean* - tells lolex to increment mocked time automatically based on the real system time shift (default: false)

Expand Down

0 comments on commit 6f52a4e

Please sign in to comment.