This is an example testing that shows how we can use Orval and ZOD to compare a swagger file. this allows for API and contract testing against an advertised spec.
this is an example project for the blog (...) It extends the code from playwright api testing with zod
Installation is as simple as installing the dependancies.
npm install
now run the codegen command and you will see an axios and zod schema generated.
npm run codegen
you can then run the tests to see the schema matching in action.
npm run test