Skip to content

Commit

Permalink
Add section in documentation for testURL (#1713)
Browse files Browse the repository at this point in the history
* Add section for testURL

* Update API.md
  • Loading branch information
Mike Klemarewski authored and cpojer committed Sep 15, 2016
1 parent a3df308 commit ec782b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ These options let you control Jest's behavior in your `package.json` file. The J
- [`testRegex` [string]](#testregex-string)
- [`testResultsProcessor` [string]](#testresultsprocessor-string)
- [`testRunner` [string]](#testrunner-string)
- [`testURL` [string]](#testurl-string)
- [`timers` [string]](#timers-string)
- [`unmockedModulePathPatterns` [array<string>]](#unmockedmodulepathpatterns-array-string)
- [`verbose` [boolean]](#verbose-boolean)
Expand Down Expand Up @@ -1210,6 +1211,11 @@ This option allows the use of a custom results processor. This processor must be

This option allows use of a custom test runner. The default is jasmine2. Jest also ships with jasmine1 which can enabled by setting this option to `jasmine1`. A custom test runner can be provided by specifying a path to a test runner implementation.

### `testURL` [string]
(default: `about:blank`)

This option sets the URL for the jsdom environment. It is reflected in properties such as `location.href`.

### `timers` [string]
(default: `real`)

Expand Down

0 comments on commit ec782b5

Please sign in to comment.