Skip to content

Commit

Permalink
Update Configuration.md (#5287)
Browse files Browse the repository at this point in the history
* Update Configuration.md

* Update Configuration.md
  • Loading branch information
rafalp authored and cpojer committed Jan 12, 2018
1 parent 2dd69b9 commit 19376c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,9 @@ For example, the following would create a global `__DEV__` variable set to

Note that, if you specify a global reference value (like an object or array)
here, and some code mutates that value in the midst of running a test, that
mutation will _not_ be persisted across test runs for other test files.
mutation will _not_ be persisted across test runs for other test files. In
addition the `globals` object must be json-seriazable, so it can't be used
to specify global functions. For that you should use `setupFiles`.

### `globalSetup` [string]

Expand Down Expand Up @@ -330,7 +332,7 @@ Both inline source maps and source maps returned directly from a transformer are
supported. Source map URLs are not supported because Jest may not be able to
locate them. To return source maps from a transformer, the `process` function
can return an object like the following. The `map` property may either be the
source map object, or the source map object as a JSON string.
source map object, or the source map object as a string.

```js
return {
Expand Down

0 comments on commit 19376c1

Please sign in to comment.