Bernard Baker
05/09/2022, 10:57 AMYousaf Nabi (pactflow.io)
This project aims to create a package that can generate pact files only from TypeScript definitions (without the necessity of writing separated tests with using pact-js package).but haven't used this yet, so cannot comment on its usefulness. On Pact -> TS Bindings, how do you mean? We use TS interfaces for say a Product interface and we use those interfaces in the pact interaction builder, so we get intellisense typing.
Yousaf Nabi (pactflow.io)
But if you have created a pact file you already have a client so I'm not sure how useful that would be?Yep the Pact file would come after the interaction with the client, so it's a bit of a weird trip, you need to build up your req/res in the pact interaction, and make it in your client code, so you should have an interface. You can generate types/clients from your providers spec (oas) with tools I've seen in the wild
Boris
05/10/2022, 5:50 AM