Skip to content

Commit

Permalink
less React-focused snapshot docs (#8157)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeysal authored and SimenB committed Mar 19, 2019
1 parent 8cec4cd commit 75db174
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions docs/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -1121,8 +1121,6 @@ You can provide an optional `propertyMatchers` object argument, which has asymme

You can provide an optional `snapshotName` string argument that is appended to the test name. Jest always appends a number at the end of a snapshot key to differentiate snapshots from a single `it` or `test` block. Jest sorts snapshots by key in the corresponding `.snap` file.

_Note: While snapshot testing is most commonly used with React components, any serializable value can be used as a snapshot._

### `.toMatchInlineSnapshot(propertyMatchers?, inlineSnapshot)`

Ensures that a value matches the most recent snapshot.
Expand Down
2 changes: 0 additions & 2 deletions website/versioned_docs/version-22.x/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -845,8 +845,6 @@ This ensures that a value matches the most recent snapshot. Check out [the Snaps

You can also specify an optional snapshot name. Otherwise, the name is inferred from the test.

_Note: While snapshot testing is most commonly used with React components, any serializable value can be used as a snapshot._

### `.toThrow(error)`

Also under the alias: `.toThrowError(error)`
Expand Down
2 changes: 0 additions & 2 deletions website/versioned_docs/version-23.x/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -1111,8 +1111,6 @@ The optional `propertyMatchers` argument allows you to specify asymmetric matche

The last argument allows you option to specify a snapshot name. Otherwise, the name is inferred from the test.

_Note: While snapshot testing is most commonly used with React components, any serializable value can be used as a snapshot._

### `.toMatchInlineSnapshot(propertyMatchers, inlineSnapshot)`

Ensures that a value matches the most recent snapshot. Unlike [`.toMatchSnapshot()`](#tomatchsnapshotpropertymatchers-snapshotname), the snapshots will be written to the current source file, inline.
Expand Down
2 changes: 0 additions & 2 deletions website/versioned_docs/version-24.0/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -1122,8 +1122,6 @@ You can provide an optional `propertyMatchers` object argument, which has asymme

You can provide an optional `snapshotName` string argument that is appended to the test name. Jest always appends a number at the end of a snapshot key to differentiate snapshots from a single `it` or `test` block. Jest sorts snapshots by key in the corresponding `.snap` file.

_Note: While snapshot testing is most commonly used with React components, any serializable value can be used as a snapshot._

### `.toMatchInlineSnapshot(propertyMatchers?, inlineSnapshot)`

Ensures that a value matches the most recent snapshot.
Expand Down

0 comments on commit 75db174

Please sign in to comment.