When using the once() modifier, the matching behaves as expected, but it's not clear from the error message why it's failing:
Rejected to value: [Error: No match found for request:
{
"baseURL": "https://host.example",
"url": "/path",
"method": "get",
"headers": {
"Accept": "application/json, text/plain, */*"
}
}·
Available request matchers:
[
{
"method": "get",
"uri": "https://host.example/path",
"headers": {
"Accept": "application/json, text/plain, */*"
}
}
]]
The above appears as though it should succeed, but it's because the matches were exhausted that it failed. This should be made clearer.
When using the
once()modifier, the matching behaves as expected, but it's not clear from the error message why it's failing:The above appears as though it should succeed, but it's because the matches were exhausted that it failed. This should be made clearer.