sumit ghorpade
11/29/2022, 6:44 AMTimothy Jones
11/29/2022, 8:20 AMTimothy Jones
11/29/2022, 8:22 AMBut to achieve my scenario, should I use Provider state and mock the response to return “Rule-123” ?This is partly what the matchers are for. You might have a request for a rule with
ruleId: "Rule-123"
. You could alleviate the requirement on mock data with:
{
ruleId: "Rule-123",
title: Matchers.string("Rule title")
}
This says the ruleId
must be Rule-123
, but you’ll accept any string for the title during verification.Timothy Jones
11/29/2022, 8:24 AMTimothy Jones
11/29/2022, 8:31 AMsumit ghorpade
11/29/2022, 9:29 AM