You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"[Mappersmith Test] No exact match found for \"POST http://example.org/blogs\" (body: \"{\"title\":\"title\",\"data\":{\"nestedItemTwo\":2,\"nestedItemOne\":1,\"nestingLevelTwo\":{\"deepNestedItemTwo\":2,\"deepNestedItemOne\":1}}}\"; headers: \"\"), partial match with \"POST http://example.org/blogs\" (body: \"{\"title\":\"title\",\"data\":{\"nestedItemOne\":1,\"nestedItemTwo\":2,\"nestingLevelTwo\":{\"deepNestedItemOne\":1,\"deepNestedItemTwo\":2}}}\"; headers: \"\"), check your mock definition"
What I do is usually to line break on POST http and then scroll to the right slowly until I can see why it's a diff... 😢
POST http://example.org/blogs\" (body: \"{\"title\":\"title\",\"data\":{\"nestedItemTwo\":2,\"nestedItemOne\":1,\"nestingLevelTwo\":{\"deepNestedItemTwo\":2,\"deepNestedItemOne\":1}}}\"; headers: \"\")
POST http://example.org/blogs\" (body: \"{\"title\":\"title\",\"data\":{\"nestedItemOne\":1,\"nestedItemTwo\":2,\"nestingLevelTwo\":{\"deepNestedItemOne\":1,\"deepNestedItemTwo\":2}}}\"; headers: \"\"), check your mock definition"
What would be nice is to have a diff where it was obvious what went wrong, such as:
"[Mappersmith Test] No exact match found for \"POST http://example.org/blogs\" - partial match with:"
{
"body": {
"title": "title",
"data": {
- "nestedItemTwo": 2,+ "nestedItemOne": 1,- "nestedItemOne": 1,+ "nestedItemTwo": 2,
"nestingLevelTwo": {
- "deepNestedItemTwo": 2,+ "deepNestedItemOne": 1,- "deepNestedItemOne": 1+ "deepNestedItemTwo": 2
}
}
},
}
The text was updated successfully, but these errors were encountered:
"[Mappersmith Test] No exact match found for \"POST http://example.org/blogs\" (body: \"{\"title\":\"title\",\"data\":{\"nestedItemTwo\":2,\"nestedItemOne\":1,\"nestingLevelTwo\":{\"deepNestedItemTwo\":2,\"deepNestedItemOne\":1}}}\"; headers: \"\"), partial match with \"POST http://example.org/blogs\" (body: \"{\"title\":\"title\",\"data\":{\"nestedItemOne\":1,\"nestedItemTwo\":2,\"nestingLevelTwo\":{\"deepNestedItemOne\":1,\"deepNestedItemTwo\":2}}}\"; headers: \"\"), check your mock definition"
What I do is usually to line break on
POST http
and then scroll to the right slowly until I can see why it's a diff... 😢What would be nice is to have a diff where it was obvious what went wrong, such as:
The text was updated successfully, but these errors were encountered: