Skip to content

Commit

Permalink
Docs: capitalization and cross-reference in Configuration.md (#2788)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrottimark authored and cpojer committed Feb 2, 2017
1 parent cfe6686 commit 5ed366d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/Configuration.md
Expand Up @@ -252,7 +252,7 @@ Default: `[]`
A list of paths to snapshot serializer modules Jest should use for snapshot
testing.

Jest has default serializers for built-in javascript types and for react
Jest has default serializers for built-in JavaScript types and for React
elements. See [snapshot test tutorial](/jest/docs/tutorial-react-native.html#snapshot-test) for more information.

Example serializer module:
Expand Down Expand Up @@ -304,6 +304,8 @@ Pretty foo: Object {
}
```

To make a dependency explicit instead of implicit, you can call [`expect.addSnapshotSerializer`](/jest/docs/expect.html#expectaddsnapshotserializerserializer) to add a module for an individual test file instead of adding its path to `snapshotSerializers` in Jest configuration.

### `testEnvironment` [string]
Default: `"jsdom"`

Expand Down
1 change: 0 additions & 1 deletion docs/ExpectAPI.md
Expand Up @@ -257,7 +257,6 @@ If you add a snapshot serializer in individual test files instead of to adding i
* You make the dependency explicit instead of implicit.
* You avoid limits to configuration that might cause you to eject from [create-react-app](https://github.com/facebookincubator/create-react-app).


See [configuring package.json](/jest/docs/configuration.html#snapshotserializers-array-string) for more information.

### `.not`
Expand Down

0 comments on commit 5ed366d

Please sign in to comment.