pact-msw-adapter
pact-msw-adapter copied to clipboard
In the Pact json file the description could be same as test name
Checklist
Before making a feature request, I have:
- [x] Searched the issues to check that this feature hasn't been requested before
- [x] Checked the documentation to see if it is possible to do what I want already
Feature description
The description in the generated Pact json file has value something like this '4624e592-115c-4bca-9bbe-f95a19b34854'. Same is displayed on Pactflow when the file is published. Instead if this could be a test name it would be helpful.
Use case
I presume that Pact file in Cypress doesn't display description this way. If the description has test name it would improve the readability of consumer tests in the Pactflow.
it's set here
https://github.com/pactflow/pact-msw-adapter/blob/3889c23e9bcc583b50d7b329fc1d8077172e797a/src/convertMswMatchToPact.ts#L38
feel free to propose a PR if you can pick up the test name. I'm not sure how feasible that is, as the name is defined within your testing framework, of which there can be many, and we don't know up front which the end-user is using.