Skip to content

Commit

Permalink
improve documentation for when to use a named matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Mar 21, 2020
1 parent abc59ce commit 633cf3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/_api-mocking/mock_matcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ title: "matcher"
position: 1.1
description: |-
Criteria for deciding which requests to mock.
Note that if you use matchers that target anything other than the url string, you may also need to add a `name` to your matcher object so that a) you can add multiple mocks on the same url that differ only in other properties (e.g. query strings or headers) b) if you [inspect](#api-inspectionfundamentals) the result of the fetch calls, retrieving the correct results will be easier.
{: .warning}
types:
- String
- RegExp
Expand Down

0 comments on commit 633cf3e

Please sign in to comment.