@kubb/plugin-cypress
Version:
Cypress test generator plugin for Kubb, creating end-to-end tests from OpenAPI specifications for automated API testing.
16 lines (14 loc) • 403 B
text/typescript
/**
* Generated by Kubb (https://kubb.dev/).
* Do not edit manually.
*/
export function createPets(data: CreatePetsMutationRequest, options: Partial<Cypress.RequestOptions> = {}): Cypress.Chainable<CreatePetsMutationResponse> {
return cy
.request<CreatePetsMutationResponse>({
method: 'post',
url: `/pets`,
body: data,
...options,
})
.then((res) => res.body)
}