Skip to content

robstaples/playwright-contract-testing

Repository files navigation

Playwright contract testing

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

Installation is as simple as installing the dependancies.

npm install

Usage

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

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published