Skip to content

Commit

Permalink
Update ExpectAPI.md (#10141)
Browse files Browse the repository at this point in the history
(Typo) Removed word "to"
  • Loading branch information
David Marvasti authored Jun 23, 2020
1 parent 95b94e8 commit ee40194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ expect.addSnapshotSerializer(serializer);
// affects expect(value).toMatchSnapshot() assertions in the test file
```

If you add a snapshot serializer in individual test files instead of to adding it to `snapshotSerializers` configuration:
If you add a snapshot serializer in individual test files instead of adding it to `snapshotSerializers` configuration:

- 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).
Expand Down

0 comments on commit ee40194

Please sign in to comment.