Moises Siles
06/27/2023, 12:01 AMconst reports = await getReportByID("xxxxxxxxxxx");
return expect(reports).to.deep.equal(getReportBodyExpectation)
and it's failing, I got
1.1) has a matching body
$ -> Type mismatch: Expected List [{"account":{.........
but received Map {"account":{"acco
the easy fix is removing the [ ] from my json files, but is there a nice way or something that I should take a lookBoris
06/27/2023, 12:13 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
the easy fix is removing the [ ] from my json files, but is there a nice way or something that I should take a lookin case it’s not clear, you never should be modifying the JSON files directly. They represent what your API client is doing (in this case, expecting an array). By removing it from the pact file, you are modifying what the contract captures and potentially deviating from reality - this is likely to result in breakages